For Programmers: Free Programming Magazines  


Home > Archive > Smartphone Developer Forum > January 2006 > Simple examples of syntax









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Simple examples of syntax
Park2

2006-01-31, 7:08 pm

C# visual studio 2005 smartphone / pocket pc

Where can I find a resource for simple examples of syntax.

eg I am trying to load an image into a picturebox at runtime

I have found:
PictureBox1.Image = Image.FromFile

Set Picturebox

pictureBox.Image = System.Drawing.Image

But no example of how to achieve the above.

I need to say (In Delphi Language) Picturebox1.Image := ("\\Storage\\My
Documents\\My Photos\\Image_00007.jpg");


Ilya Tumanov [MS]

2006-01-31, 10:02 pm

PictureBox1.Image = new Bitmap("\\Full\\path\\to\\file.name");

Don't forget to dispose of this Bitmap after you done.

--
Best regards,

Ilya

This posting is provided "AS IS" with no warranties, and confers no rights.

*** Want to find answers instantly? Here's how... ***

1. Go to
http://groups-beta.google.com/group...framework?hl=en
2. Type your question in the text box near "Search this group" button.
3. Hit "Search this group" button.
4. Read answer(s).

"Park2" <Stevewarby@btinternet.com> wrote in message
news:u48OC8pJGHA.3224@TK2MSFTNGP09.phx.gbl...
> C# visual studio 2005 smartphone / pocket pc
>
> Where can I find a resource for simple examples of syntax.
>
> eg I am trying to load an image into a picturebox at runtime
>
> I have found:
> PictureBox1.Image = Image.FromFile
>
> Set Picturebox
>
> pictureBox.Image = System.Drawing.Image
>
> But no example of how to achieve the above.
>
> I need to say (In Delphi Language) Picturebox1.Image := ("\\Storage\\My
> Documents\\My Photos\\Image_00007.jpg");
>
>



Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com