tags:

views:

86

answers:

0

I am developing the smart device application in C#. In that I am adding the picturebox as follows PictureBox PictureBoxObj=new PictureBox(); PictureBoxObj.SizeMode = PictureBoxSizeMode.CenterImage; Image image=Image.FromFile("file://localhost/C:/Users/H%20W/Desktop/figure_3.3_silent_city_overview[1].jpg");

But it is giving an error "System.Drawing.Image does not contain a definition for FormFile". How to come out of this error? Is there another way to add image to smart device application? If there is another way, what is the code for that?