Header Ads

Header Ads

How to use picture box control

 how to put image at run time

First you create new project then put into form picture box and button then you double click on the button and you go to button click event You right following code in button click event here bitmap is a class for use to insert picture in picture box.
Openfiledialog OS =new openfiledialog();
OS .Showdialog();
bitmap BS =new bitmap(OS.filename);
Picturebox.image= BS;

No comments:

Powered by Blogger.