Hello Custom
Learn how to output a Message Box using Visual Basic 6 with this Tutorial that Celebrates the CESPage 25th Anniversary
Please follow all the Steps of Hello World before starting this Tutorial, this Tutorial is presenting using the original Images and Code.
Step 1
Step 2
Step 3
Step 4
Text
property from Text1
to
Hello World!
Step 5
Double Click on the Command Button and replace the Command1_Click()
Sub:
MsgBox Text1.Text,vbInformation,"Test"
See Below:
Step 6
Step 7
Just Click on Ok and enter anything you want into the Text Box that is made up of Letters or Numbers and then Click on the
Command Button. The Message Box Creates the Text from the Text Box, try it for yourself! Try changing some of the variables, such as seeing if you can get
it to display input from two Text Boxes. Clue:Use something like: MsgBox Text1.Text & Text2.Text, vbInformation, "Two Text Boxes"