I want to show a pic using pictureBox in my app.
I use the following code:
pictureBox1.Image=new Bitmap("MMS.jpg");

It works fine when running on my PC. But it fails when running my app
"client.exe" on my pocket pc.(MMS.jpg and client.exe are under the same
directory)

Any help would be greatly appreciated.
Thanks

Re: pictureBox problem by Peter

Peter
Thu Oct 21 09:18:30 CDT 2004

On Windows CE there is no concept of current directory, so you paths must be
specified in full for example:-
pictureBox1.Image=new Bitmap(\\Program Files\\MyApp\\MMS.jpg);

Peter

--
Peter Foot
Windows Embedded MVP
www.inthehand.com | www.opennetcf.org

Do have an opinion on the effectiveness of Microsoft Windows Mobile and
Embedded newsgroups? Let us know!
https://www.windowsembeddedeval.com/community/newsgroups

"Eric" <Eric@discussions.microsoft.com> wrote in message
news:3B615A73-986A-4E6E-8FEB-8C31BC27E737@microsoft.com...
>I want to show a pic using pictureBox in my app.
> I use the following code:
> pictureBox1.Image=new Bitmap("MMS.jpg");
>
> It works fine when running on my PC. But it fails when running my app
> "client.exe" on my pocket pc.(MMS.jpg and client.exe are under the same
> directory)
>
> Any help would be greatly appreciated.
> Thanks