Message

Program to display a message “HELLO VISUAL BASIC”

Sol.
1. Start Visual Basic by clicking on the Start Button => All programs => Microsoft visual studio 6.0 => Microsoft Visual Basic 6.0
2. Then you can see New project Dialogbox  select standard Exe project then click open button.
3. Now you have a Form Control. Change Form Caption property to “Message” and Set an Icon to the Form control by using Icon Property ( Click on ---  button and select an icon from C:\Program Files\Microsoft Visual Studio\COMMON\Graphics\Icons\Mail\MAIL01A.ico  then click Open button).
4. Add following controls to the form control
Sr. No
Control
Properties
Settings
1
Label
Name
Message
Caption
Blank
Font
Times New Roman,Bold,16 pts
Alignment
Center
Border Style
1-Fixed Single
2
Command Button
Name
Command1
Caption
Message
3
Command Button
Name
Command2
Caption
Exit

5.     Double click on the Command1 control and write codes in between command1_click () event procedure.
Private Sub Command1_Click()
Message.Caption = "HELLO VISUAL BASIC"
End Sub
6. Double click on the Command2 control and write codes in between command2_click () event procedure.
Private Sub Command2_Click()
End
End Sub
7. Now Start project using start  button on the standard toolbar or using F5 function key on the keyboard.