Click here to Skip to main content
15,916,419 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Does anyone has a tutorial of How To Make A Photo Viewer In Visual Basic 2008 for a smart device?

Thanks in advance
Posted

I don't have a tutorial, but I worked in the Windows CE Compact Framework a couple of years ago.

Open up Visual Studio and create a Smart Device Project. Click on "View" and select "toolbox."

Under "Common Device Controls" you should see a control called "Picture Box." Drag it to your application.

All you need to do if you want to display a picture is set the PictureBox.Image to the file path of the image that you want to display.

Does that give you a good starting point?

Ryan McBeth
 
Share this answer
 
Comments
[no name] 27-May-10 16:16pm    
Thanks.

So far so good but this is my problem:

I have created a mobile app and I want to change the background, so I have created a button that allows me to browse my device looking for pictures but I do not know how to update the Picture Box with a picture selected from my mobile.

Thanks again
Ryan McBeth 27-May-10 16:22pm    
Did you call the PictureBox.Refresh() Method once you were done with setting the image? If that doesn't work, post some code and I'll see if I can help.

Ryan McBeth
First add a picture box and an openfiledialog
the on a button click even write this
me.picturebox1.load(openfiledialog1.filename)

I hope this helps, it is very easy!
 
Share this answer
 
Comments
[no name] 30-May-10 10:05am    
Sorry but it did not work.
I am working on a smart device form not windows form so the "load" property is not available to use.

Thanks anyway
gebrielabebe 31-May-10 2:36am    
Oops sorry I did not read the whole question ....

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900