Can someone point me to an example that uses a PictureBox and loads a
picture into it dynamically at run time?

I would have the picture located in a subdirectory of the project called
Images so something like:

pictureBox1.Image = new Bitmap(getAppPath + "Images\blah.gif");

Thanks

Re: Picture.Image by Tim

Tim
Wed May 12 11:08:06 CDT 2004

To get the app directory at runtime see this FAQ entry:
http://wiki.opennetcf.org/ow.asp?CompactFrameworkFAQ%2FStartupDirectory

--
Tim Wilson
.Net Compact Framework MVP
{cf147fdf-893d-4a88-b258-22f68a3dbc6a}
"Arn Cota" <acota@nc.rr.com> wrote in message
news:brroc.27919$V_.1101577@twister.southeast.rr.com...
> Can someone point me to an example that uses a PictureBox and loads a
> picture into it dynamically at run time?
>
> I would have the picture located in a subdirectory of the project called
> Images so something like:
>
> pictureBox1.Image = new Bitmap(getAppPath + "Images\blah.gif");
>
> Thanks
>
>



Re: Picture.Image by Arn

Arn
Wed May 12 14:18:46 CDT 2004

Thank you, thats is exactly what I needed!

"Tim Wilson" <TIM(UNDERSCORE)WILSON(AT)ROGERS(PERIOD)COM> wrote in message
news:%23E705sDOEHA.3348@TK2MSFTNGP09.phx.gbl...
> To get the app directory at runtime see this FAQ entry:
> http://wiki.opennetcf.org/ow.asp?CompactFrameworkFAQ%2FStartupDirectory
>
> --
> Tim Wilson
> .Net Compact Framework MVP
> {cf147fdf-893d-4a88-b258-22f68a3dbc6a}
> "Arn Cota" <acota@nc.rr.com> wrote in message
> news:brroc.27919$V_.1101577@twister.southeast.rr.com...
> > Can someone point me to an example that uses a PictureBox and loads a
> > picture into it dynamically at run time?
> >
> > I would have the picture located in a subdirectory of the project called
> > Images so something like:
> >
> > pictureBox1.Image = new Bitmap(getAppPath + "Images\blah.gif");
> >
> > Thanks
> >
> >
>
>