Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Displaying Message Box 1

Status
Not open for further replies.

perlone

Programmer
May 20, 2001
438
US
Hello,

I have a button called Button1 and I want to display a dialog box if the user click the button but I don't know how. All have is the following:

Sub Button1_Click()
'Don't know what to put here, following isn't working:

MsgBox ("TEST", vbOK)

End Sub
There is no Knowledge that is not power.
Age: 16
E-mail: projectnet01@yahoo.com
School: Coral Springs High (Company:(not done yet) :)
Status: Currently working with C++ for game developing. And making a musical band.
-Aaron
 
No parens on a SUB call unless CALL used.
Use
MsgBox "TEST", vbOK
OR
Call MsgBox ("TEST", vbOK)
OR
intResulkt = MsgBox ("TEST", vbOK)

Generate Forms/Controls Resizing/Tabbing Class
Compare Code (Text)
Generate Sort Class in VB or VBScript
 
Thank You. There is no Knowledge that is not power.
Age: 16
E-mail: projectnet01@yahoo.com
School: Coral Springs High (Company:(not done yet) :)
Status: Currently working with C++ for game developing. And making a musical band.
-Aaron
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top