Condividi tramite


DialogContainerWithToolbar.ShowDialog Method

Definition

Shows a dialog.

public:
 System::Windows::Forms::DialogResult ShowDialog();
public System.Windows.Forms.DialogResult ShowDialog ();
override this.ShowDialog : unit -> System.Windows.Forms.DialogResult
Public Function ShowDialog () As DialogResult

Returns

DialogResult.

Remarks

To show a dialog box and process messages from it, this method performs the following actions:

  • Gets the site from the private subclass, ShowDialogContainer.

  • Captures messages that originate in the dialog box by calling AddMessageFilter.

  • Removes the message filter by calling RemoveMessageFilter.

Applies to