Visual Basic is a free set of tools that windows developers at any level can use to create they're custom application using basic and expert settings.
1.Creating our first application
Before creating a new application we need to make a new project, you need to click and select new project
New project dialog will appear :
Now we will create or first program, lets add 1 button and change the text of it "Properties window-Text" and change what every you like ex. "Message box"
Now for the coding part we will make that when you push the button it will show you a messagebox notification.
Double click the button and key in the following code at the source code window as show below.
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
MsgBox("This is my first application :]")
End Sub
Now run your first application. After you pushed the button you can see the messge poping out
with the worked we writed before.
Today we learned how to make a message box. I hope you enjoyed the tutorial. :]
No comments:
Post a Comment