Contains sample apps that demonstrate how to use MessageBox control

The MessageBox control is functionally equivalent to the Windows Forms MessageBox control.
Displays a message in a Dialog Form that can contain text, buttons and symbols that inform and instruct the user.
In Visual WebGui, MessageBox is implemented as a Dialog form, and behaves exactly like one. This means that using MessageBox in Visual WebGui is fundamentally different from its usage in Windows Forms, because of the fact that in Visual WebGui, dialog forms are only modal on the client, and your code does not wait on user's input. See Form Concepts for more on dialog forms.
Using MessageBox for showing information, without requiring any user input, is exactly the same as for the Windows Forms control, except for the fact that your server side code (code behind) will not stop and wait for the user to close the dialog (click the OK button).
When user input is required (like either clicking Ok or Cancel button), you will in all cases need to use an overload of MessageBox.Show, that supplies a Closed event handler, which is an event handling procedure that the programmer must supply. In that procedure you check for DialogResult of the MessageBox form (remember it's just a form) and act upon user's input.
Availability:
The MessageBox is one of the Out of the Box standard controls, which means it is free and available in all Visual WebGui versions.
The examples below demonstrate how to:
- set Text and Caption for MessageBox window
- set one of various combinations of common MessageBox Buttons
- set one icon of various icons common in MessageBoxes
- set one of various options common in MessageBoxes
- set which of the buttons would be the default button
- create and use MessageBox window on the Form