For this tutorial you will learn how to make a very simple, and basic program.
Step one- Create a new form.

Step two- Click the command button on the side and make two buttons.

Step Three- Click on on of the command buttons you drew, and on the side there will be a menu. Change the caption to Button 1, and repeat the same with the other button, but the caption Button 2.

Step four- Double click one of the buttons, and put in
CODE
Dim button
button = MsgBox("What you want to say here", 65, "Title")
Now change that code to what you want it to say; i.e. title could be "Error!" and "what you want to..." could be "Oh no! You got an error!"
Step 5- Do the same with button two, but change the caption to something else.
Step 6- Now click the form, and change its caption to what ever you want the title bar to say.
Now you're finished! To test your program, go to Run>start.
If you want to make this into a program, go to File>Make project.exe.

This tutorial is for noobs who have no experience with vb6, and are trying to learn simple functions.

 

 

 


Reply