Let's Start
Step1: Open Visual Basic 6.0
Step2: Choose "Standard Exe" and click Open
Step3: Choose Command Button from ToolBar. And then click on your form.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhMTnGxIwejc-jxvRg_3kRb50LKhT60IHyI9BfR9E7fs2E95ILqVM6OO9iFU3wTF0fzbpGK5zx-pWcaEIXSx_jHmli1Bwldltmi0Y7-kveZlNrcsO_EGUwguSn5WCFEnMBm61zFuSOrW9Iv/s1600/cmd.JPG)
Step8: Click on the command button. You should see a message box..!!
Step1: Open Visual Basic 6.0
Step2: Choose "Standard Exe" and click Open
Step3: Choose Command Button from ToolBar. And then click on your form.
Step 4: Double Click on Command Button
Step5: You see the code window which have already some code written in it.
This code is automatically written by the vb when you double click on the Command Button.
Step6: Now write this:
MsgBox "Hello World!"
Your code look like this:
Private Sub Command1_Click()
MsgBox "Hello World"
End Sub
Step7: Click on the start button [play icon] to run your first project.
No comments:
Post a Comment