How to add a image to Windows Form using open file dialog Box in C#

Hi every one today we are going to learn how to work with `Opnefile Dialog Box ` in C#




Step 01 : Open Visual Studio 2008 and Create new project,
Step 02 : Desing folowing form , add picture box , button,open file dialog box and lable,
               select lable and right click and select properties then select text and set it blank
               After the Change the button text according to previous steps


Step 03 : Then double click on the "SET IMAGE " button and type the following cede in side the button  click    event



Step 04 : Then click the run button to run our project

Thank you...!!
put your problems as a comment regarding to this

Categories:

Leave a Reply