|
|
|
|
![]() ![]() |
Jun 4 2005, 04:51 AM
Post
#1
|
|
|
Super Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 203 Joined: 2-June 05 From: Why would you want to know? Member No.: 7,778 |
Here are lists of MsgBoxes:
Syntax: MsgBox Prompt, MsgBoxStyle, Title, HelpFile MsgBox "Uh, text!", , "Uh, Title!" MsgBox "Uh, text!", vbCritical, "Uh, Title!" MsgBox "Uh, text!", vbExclamation, "Uh, Title!" MsgBox "Uh, text!", vbInformation, "Uh, Title!" MsgBox "Uh, text!", vbOKCancel, "Uh, Title!" MsgBox "Uh, text!", vbQuestion, "Uh, Title!" MsgBox "Uh, text!", vbYesNo, "Uh, Title!" MsgBox "Uh, text!", vbYesNoCancel, "Uh, Title!" MsgBox "Uh, text!", vbRetryCancel, "Uh, Title!" MsgBox "Uh, text!", vbOKOnly, "Uh, Title!" MsgBox "Uh, text!", vbAbortRetryIgnore, "Uh, Title!" MsgBox "Uh, text!", vbMsgBoxHelpButton, "Uh, Title!", "C:\HelpFile.hlp" You can also combine them: MsgBox "Uh, text!", vbExclamation + vbYesNoCancel, "Uh, Title!" This is great for noobs. |
|
|
|
Jun 4 2005, 06:33 AM
Post
#2
|
|
|
Newbie [Level 1] ![]() Group: Members Posts: 15 Joined: 14-April 05 From: Bangalore Member No.: 5,654 |
hmm.. maybe you could post how to code what happens when each button is pressed (incase there is more than the OK button)..
i don't use too much of VB myself.. C#.net is nice. |
|
|
|
Jun 4 2005, 01:12 PM
Post
#3
|
|
|
Super Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 293 Joined: 14-August 04 Member No.: 808 |
doesnt msgbox just pop up with those text?
|
|
|
|
Jun 4 2005, 02:12 PM
Post
#4
|
|
|
Super Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 203 Joined: 2-June 05 From: Why would you want to know? Member No.: 7,778 |
QUOTE(munim @ Jun 3 2005, 11:33 PM) hmm.. maybe you could post how to code what happens when each button is pressed (incase there is more than the OK button).. i don't use too much of VB myself.. C#.net is nice. If you do this, each button will be different BUT only for two button (<> vbCancel means the command for OK): CODE If MsgBox("Uh, Text!" vbInformation + vbOKCancel, "Uh, Title) <> vbCancel Then Form1.Load End If There should be more helpful for noobs and how to do commands with them. Yes they do bring up a dialog with text but you can also do more with them like confirmations. |
|
|
|
Jul 11 2005, 02:25 AM
Post
#5
|
|
|
Advanced Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 126 Joined: 11-May 05 Member No.: 6,903 |
QUOTE(MarCrush @ Jun 4 2005, 04:51 AM) Here are lists of MsgBoxes: Syntax: MsgBox Prompt, MsgBoxStyle, Title, HelpFile MsgBox "Uh, text!", , "Uh, Title!" MsgBox "Uh, text!", vbCritical, "Uh, Title!" MsgBox "Uh, text!", vbExclamation, "Uh, Title!" MsgBox "Uh, text!", vbInformation, "Uh, Title!" MsgBox "Uh, text!", vbOKCancel, "Uh, Title!" MsgBox "Uh, text!", vbQuestion, "Uh, Title!" MsgBox "Uh, text!", vbYesNo, "Uh, Title!" MsgBox "Uh, text!", vbYesNoCancel, "Uh, Title!" MsgBox "Uh, text!", vbRetryCancel, "Uh, Title!" MsgBox "Uh, text!", vbOKOnly, "Uh, Title!" MsgBox "Uh, text!", vbAbortRetryIgnore, "Uh, Title!" MsgBox "Uh, text!", vbMsgBoxHelpButton, "Uh, Title!", "C:\HelpFile.hlp" You can also combine them: MsgBox "Uh, text!", vbExclamation + vbYesNoCancel, "Uh, Title!" This is great for noobs. i think this guy is only tryin yo get some points |
|
|
|
Sep 26 2005, 07:23 AM
Post
#6
|
|
|
Newbie [Level 1] ![]() Group: Members Posts: 13 Joined: 15-September 05 Member No.: 11,892 |
QUOTE(munim @ Jun 4 2005, 12:03 PM) hmm.. maybe you could post how to code what happens when each button is pressed (incase there is more than the OK button).. i don't use too much of VB myself.. C#.net is nice. here is the code for a yes/no/cancel msgbox CODE ync = MsgBox("Click on yes or no or cancel", vbYesNoCancel + vbQuestion, "Title")
If ync = vbYes Then 'code goes here ElseIf ync = vbNo Then 'code goes here ElseIf ync = vbCancel Then 'code goes here End If |
|
|
|
Sep 26 2005, 07:46 AM
Post
#7
|
|
|
Premium Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 197 Joined: 3-April 05 From: Cuernavaca, Mexico Member No.: 5,226 |
QUOTE(lava.alt @ Jul 10 2005, 08:25 PM) Lol, I really don't think he's trying only to get credits, but i can't find his post useful anyway... CheerS!! |
|
|
|
Sep 26 2005, 08:35 AM
Post
#8
|
|
|
Member [Level 3] ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 91 Joined: 6-September 05 From: Bosnia Member No.: 11,564 |
My advice :
using tutorial for VB or Book and have example happily |
|
|
|
Oct 20 2005, 02:38 AM
Post
#9
|
|
|
Member [Level 1] ![]() ![]() ![]() ![]() Group: Members Posts: 73 Joined: 21-September 05 Member No.: 12,113 |
Yes. iT IS GOOD. bUT YOU KNOW, IT IS simple version of WinAPI's mESSAGEBoX function. MessageBox has got more possibilities.
|