|
|
|
|
![]() ![]() |
Jun 19 2007, 09:35 AM
Post
#1
|
|
|
Newbie [Level 1] ![]() Group: Members Posts: 17 Joined: 19-June 07 Member No.: 45,058 |
hi all, heres a simple tutorial on how to make a message box in VB
start a new form in visual basic, draw a command button which should contain the text "Command1" when drawn, double click on the button, and write the code CODE msgbox "Hello World", vbcritical, "Xplorer_3X Says..." so your code should look like this; CODE Private Sub Command1_Click() msgbox "Hello World", vbcritical, "Xplorer_3X Says..." end sub Now compile the project and click on the button, and Wa-laa, there she be. |
|
|
|
Jun 21 2007, 05:42 AM
Post
#2
|
|
|
Advanced Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 137 Joined: 20-March 07 From: Where ever you want me to be Member No.: 40,391 |
HMM although myVB currently cannot be installed ( due to HDD and server problems) This seems god
But not that effective good for newbies Whi just bought VB but for me it is too simple but wil try ti out |
|
|
|
Jun 21 2007, 05:55 AM
Post
#3
|
|
|
Newbie [Level 1] ![]() Group: Members Posts: 13 Joined: 19-June 07 From: Oregon Member No.: 45,084 |
I'm not sure about the use of "vbcritical" as I've never seen that before while using Visual Basic =/ Simply
CODE Msgbox('Enter Text') would do the job assuming you're using the .NET version of VB. |
|
|
|
Jun 26 2007, 02:14 PM
Post
#4
|
|
|
Neurotical Squirrel ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: [HOSTED] Posts: 587 Joined: 4-November 04 From: Novi Sad, Vojvodina Member No.: 2,127 |
I'm not sure about the use of "vbcritical" as I've never seen that before while using Visual Basic =/ Simply CODE Msgbox('Enter Text') would do the job assuming you're using the .NET version of VB. CODE MsgBox(prompt[, buttons] [, title] [, helpfile, context]) Buttons argument; can be combined using butwise operator OR: This is the list of available constants that determine which buttons will appear on the message box:
MsgBox can also be used as a function, where it returns different values, for different buttons that are pressed:
|
|
|
|
![]() ![]() |
Similar Topics
| Topics | Topics | |
|---|---|---|
|
|
|
|
Lo-Fi Version | Time is now: 26th July 2008 - 04:26 PM |