バージョン

Show(String) メソッド

UltraMessageBox を表示します。
シンタックス
'宣言
 
Public Overloads Shared Function Show( _
   ByVal text As String _
) As DialogResult
public static DialogResult Show( 
   string text
)

パラメータ

text
UltraMessageBox のコンテンツ領域に表示するテキスト。

戻り値の型

表示される UltraMessageBox の DialogResult を返します。
使用例
Private Sub DisplayMessage(ByVal owner As IWin32Window, ByVal message As String) 
    
    ' If the owner is not set or the owner if the current form and it is a MDI Child, 
    ' use the overload with the IWin32Window owner 
    If owner IsNot Nothing Then 
        Dim ownerForm As Form = TryCast(Form.FromHandle(owner.Handle), Form) 
        If ownerForm IsNot Nothing AndAlso ownerForm.IsMdiChild = True Then 
            UltraMessageBoxManager.Show(message) 
        Else 
            UltraMessageBoxManager.Show(owner, message) 
        End If 
        Exit Sub 
    End If 
    
    UltraMessageBoxManager.Show(message) 
End Sub
private void DisplayMessage(IWin32Window owner, string message)
{

    // If the owner is not set or the owner if the current form and it is a MDI Child,
    // use the overload with the IWin32Window owner
    if (owner != null)
    {
        Form ownerForm = Form.FromHandle(owner.Handle) as Form;
        if (ownerForm != null &&
            ownerForm.IsMdiChild == true)
            UltraMessageBoxManager.Show(message);
        else
            UltraMessageBoxManager.Show(owner, message);
        return;
    }

    UltraMessageBoxManager.Show(message);
}
参照