First step open Microsoft Visualbasic 6.0 IDE
and select Standard Exe and press Open button, then a form1 will be displayed on the screen.
Press F5 to run the application
and select Standard Exe and press Open button, then a form1 will be displayed on the screen.
Now add a Label and two command buttons on the Form1.
Right click on Label1, click on Properties
Then Properties window is displayed on the right hand side of the screen, Delete Caption Label1 so that Label1 looks empty.
Now similarly change the Command1 Property Caption as "Name" and Command1 Property Caption as"Exit". Double Click on CommandButton1 and enter the following code
Private Sub Command1_Click()
Label1.Caption = "SATEESH.BAGADHI"
End Sub
Label1.Caption = "SATEESH.BAGADHI"
End Sub
Similarly Double click on CommandButton2 and type the following code
Private Sub Command2_Click()
Unload Me
End Sub
Unload Me
End Sub
Press F5 to run the application
No comments:
Post a Comment