Custom Message Box Gallery

Last updated January, 2014.

   These are samples of message boxes made with the custom message box VBScript class. The custom MsgBox class can be pasted into any VBScript to provide a customizable message box object. It produces easy-to-use, self-sizing, custom message boxes that look very similar to system message boxes and use system colors, but are actually webpages displaying in HTA windows. The message boxes allow any number of buttons, an optional picture, custom font, optional text input and optional dropdown selector. Any combination can be used. When the message box is closed, the number of the button clicked is returned to the calling script. Any selection in the dropdown list and any text entered can also be retrieved.

   This updated version uses a dynamically created HTA window that avoids the problem of IE security restrictions in IE7+. It works on all Windows versions from Win98 to Win8, and with all IE versions from IE5 up.

samples of vbs-generated message boxes

The two images below show display options for the output window.

sample of vbs-generated output window

Click here to return to the VBScript Samples page.