Your first application in C sharp:
Step 1:
Open Visual C sharp 2010 / Visual C sharp 2008 which you have installed on your Machine.Now your are on start up page.
Start Up Page
Now Click on New Project to start a new project.
Step 2:
1.Click on Windows form application.2. Name your Application what ever your want.
3.Click OK to proceed further.
Step 3:
You have started a new projectYou have a form with it's title on left side and Control buttons on right side.
Step 4:
Now its time to give some controls to your form.1. left click on toolbox witch is appeared on left site of window.
2. Double Click on "Button" to add a Button to your form.
Now we have button on our form.
Step 5 :
Now you can change the properties of your button by right clicking on it and choosing properties.Step 6:
We will see properties in detail latter. Now we are going to change the text of the Button.Click on Text and Change the text of button.
Step 7:
Now double click on Button to give it some code.you will see above window.
Step 8:
Put the following code under your button as shown.or copy and paste this
MessageBox.Show("Helo World! This is my first application and It's working good ");
Step 9:
Run your Application by click on Run or by pressing "F5" key on your key board.
Congratulations you have created an application successfully and its working well.









No comments:
Post a Comment