3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

How to create a message box?

Step 5Some Tips

Some Tips
If you want you can put more message boxes on your file.
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 StepDownload PDFView All StepsNext Step »
5 comments
Jul 30, 2009. 9:03 AMRadobot says:
Nice!
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 :)
Dec 8, 2009. 11:27 PMwhoelsebutaelx says:
How do you make it so that if you select yes for example it will do one thing but then if you press no it will do another thing?
Dec 9, 2009. 6:11 AMRadobot says:

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

Oct 4, 2009. 9:48 AMrymagiccraft123 says:
'sweet I tryed that
Aug 1, 2009. 1:54 PMRadobot says:
Wich part you mean? P.S. Try the example!
Mar 17, 2009. 10:59 PMNasatara says:
is there a way to change the icon to Internet explorer or something like that?? thanks nasatara
Aug 1, 2009. 2:13 PMRadobot says:
There is a another way: right click on internet shortcut select properties and change target to your file

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
2
Followers
5
Author:firtvid20