Step 5Some Tips
for example:
x=msgbox ("Do you want to learn how to make this message box?" ,4, "Instructables")
x=msgbox ("If you said yes go to the Instructables website" ,0, "Instructables")
x=msgbox ("If you said no close the message box" ,0, "Instructables")
If you want your message box to be uncloseable (when you click a button or the close button the message box will keep on reappearing) type this:
do
x=msgbox ("yourtexthere" ,0, "yourtitlehere")
loop
The only way to stop this is to open up Windows Task Manager, go to the Processes tab and look for wscript.exe and click End Process.
| « Previous Step | Download PDFView All Steps | Next Step » |









































But I know how to make it more advanced(who can work with visual basic is in advantage):
First put on to the first line first (main) msessage box (that will decide what will happend next)
Then put this:
If x=vb* Then
x=messagebox("Second message box",any,"any")
End if
*Here you can put the name of the button that user was pressed (first letter must by big example: vbNo or vbIgnore...)
Here I create a cool example:
x=msgbox("Delete local disc D?",36,"Disc cleaner")
If x=vbNo Then
x=msgbox("Really no?",36,"Adjusting")
If x=vbNo then
x=msgbox("But you can't stop it.",64,"Status")
End if
End if
x=msgbox("Cleaning is starting.",64,"Disc cleaner")
And how it work's:
On start you have a "main" message saying: Delete local disc D?
On second line computer is checking what you was press and if it was No you see next message with question: Really no?
Then computer is again checking what you was press and if it was No you see message saing: But you can't stop it. and computer is going to last line
If it wasn't No then computer jump on the last line where is next message box saing: Cleaning is starting.
P.S. I think you can use this comment like next step :)
Type this:
If x = vbNo Then
*User press No
Else
***User doesn't press No - user press Yes or Ignore or OK or ...
End If
And if you want to react on more buttons (like when user can press Retry or Ignore or Abort) try this:
If x = vbRetry Then
*Retry
ElseIf x = vbIgnore Then
*Ignore
ElseIf x = vbAbort Then
*Abort
Else
*Not Retry, not Ignore, not Abort - something else
End if