• Log in or sign up for an account here: https://www.sythe.org/login

Noob VB question

  • Thread starter Thread starter Chuck Norr1s
  • Start date Start date
C

Chuck Norr1s

Guest
Noob VB question
Well, i recently started VB (last night to be exact) and i have a noob question. How do you make it that when you click a button a window with text pops up? Thx, Chuck Norr1s.
 
Noob VB question
Code:
Private Sub MyButton_Click()
MsgBox MyText, BoxStyle, BoxTitle
End Sub
The name of your button is "MyButton" and when it is clicked on it uses the message box function (Msgbox) to display a message box with properties you can set.

"MyText" is replaced by the text you want to display between quotation marks (" ").

"BoxStyle" is optional and is to define the style of message box you want to display, just experiment with different ones ex: vbOkOnly, vbInformation, etc.

"BoxTitle" is optional, but useful to set the title of the message box. By default if this isn't specified it just displays the name of your project.

If you're just beginning nothing is really a noob question so try not to be afraid to ask. Just remember though that often you can learn best what you've figured out for yourself and there are tons of VB6 resources online so don't forget to check around as well.
 
Noob VB question
Is there a way to make one with out VB i cant download that =(
 
Runescape Gamblingrunescape gambling
Back
Top