As in my previous post I have explained about the site from one can get express version of Visual Studio. Net. After downloading install the Visual Studio.NET on you computer. So now lets learn how to write a simple Windows application.
For creating the application following steps are required to be taken
- Select Programs-> Microsoft Visual Studio.NET-> Microsoft Visual Studio.NET-> from the start menu.
- Click the on the create Project button in start page .
- Select Visual Basic project in project type pane and select Windows Application in the Templates pane, Give the name of the project as you wish here for example the name of the project will be "Welcome" click on "OK" button. this will open an empty button.
4. Select a button control from toolbox which is already described in my previous post.
place it on the form and set the property as mentioned below:
place it on the form and set the property as mentioned below:
Control Property Value to be set
Button Name BtnWelcome
Text start
5. Double click on Button control to open the code editor windows . The template for the editor will automatically created. you need to type only the msgbox command
Private Sub BtnWelcome_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnWelcome.Click
MsgBox("Congratulation you have successfuly created your first VB.NET application")
End Sub
6. Save the project by selecting the Save All option in file menu.
7. To run the application just press the F5 function Key on key board. Your application with a button will display.
8. Click on the Button label "Start", you will find a window form congratulating you.
For more about Visual basic click here. and to understand visual basic in best way step by step for that I will advice you to have a book which is written by Anne Prince and available on Amozon and also available on Flipkart
No comments:
Post a Comment