Re: pictureBox problem

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Peter Foot [MVP] (feedback_at_no-spam.inthehand.com)
Date: 10/21/04


Date: Thu, 21 Oct 2004 15:18:30 +0100

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 


Relevant Pages

  • Re: Deselecting a value in a combo box
    ... Peter Foot ... Windows Embedded MVP ... setting the SelectedIndex to -1 should do it - ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: J# and Windows Mobile
    ... Peter Foot ... Windows Embedded MVP ... > i know how to develop applications for windows mobile devices. ...
    (microsoft.public.pocketpc.developer)
  • Re: How to detect the device of my application in C#
    ... The make/model etc ... Peter Foot ... Windows Embedded MVP ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Read data from SqlCeDataReader
    ... you should cast it to an int e.g. ... Peter Foot ... Windows Embedded MVP ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: change date time
    ... (you can view the C# source code online - www.opennetcf.org/sourcebrowse/) ... Peter Foot ... Windows Embedded MVP ...
    (microsoft.public.dotnet.framework.compactframework)