Helpful Information
 
 
Category: Visual Basic Programming
Alerts in VB

I remember, from somewhere in my past, that VB can create alerts other than the !/Alert/Ok and ?/Confirm/OK-Cancel boxes. Is this true? I think there was some sort of information/help alert... can't remember though, i've slept since then.

If there is, can someone post the code for this?

Many thanks.

Here is a link to the complete syntax of the message box: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbenlr98/html/vafctmsgbox.asp

The basic types of message boxes are:
vbOKOnly -- OK button only
vbOKCancel -- OK and Cancel buttons
vbAbortRetryIgnore -- 2 Abort, Retry, and Ignore buttons
vbYesNoCancel -- Yes, No, and Cancel buttons
vbYesNo -- Yes and No buttons
vbRetryCancel -- Display Retry and Cancel buttons


You also have another pop-up window called an input box: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbenlr98/html/vafctinputbox.asp

Many thanks for this - you don't know how many forums i've tried over the years for this! Seems silly I couldn't find it myself really... oh well. :rolleyes:

How would it be used on a web page then? Cross plaform doesn't matter, i'd only be using it in IE6.

Is there any way to change the buttons on these alerts? For example:



Open the file in:

| View Mode || Edit Mode || Settings Mode |


Ta.

I don't think you would be using it in IE. VB has this control, but I am not sure about VBScript.
I guess you could get the boxes you wanted if you created your own browser in VB.

Y don't you make a forum that looks nearly like the alertbox? everything is made up of the same type of windows after all? And you could return values quite easily










privacy (GDPR)