Jump to content
xisto Community
Sign in to follow this  
rejected

Simple Visual Basic 6 Tutorial Tutorial 1: Msgbox

Recommended Posts

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

Dim buttonbutton = 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.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.