バージョン

Show(UltraMessageBoxInfo) メソッド

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

パラメータ

messageBoxInfo
表示される単一 UltraMessageBoxInfo インスタンスに関する情報を含む UltraMessageBoxInfo オブジェクト。

戻り値の型

表示される UltraMessageBox の DialogResult を返します。
使用例
Private Sub DisplayMessage(ByVal owner As IWin32Window, ByVal message As String, ByVal caption As String, ByVal buttons As MessageBoxButtons, ByVal icon As MessageBoxIcon, ByVal defaultButton As MessageBoxDefaultButton, _ 
ByVal helpFilePath As String, ByVal keyWord As String) 
    ' Create an UltraMessageBoxInfo and set all the appropriate properties 
    Using messageBoxInfo As New UltraMessageBoxInfo() 
        messageBoxInfo.TextFormatted = message 
        messageBoxInfo.Caption = caption 
        messageBoxInfo.Buttons = buttons 
        messageBoxInfo.Icon = icon 
        messageBoxInfo.DefaultButton = defaultButton 
        messageBoxInfo.EnableSounds = Infragistics.Win.DefaultableBoolean.[False] 
        messageBoxInfo.MaximumWidth = 700 
        messageBoxInfo.Owner = owner 
        messageBoxInfo.Style = MessageBoxStyle.Standard 
        messageBoxInfo.HeaderFormatted = "<i>Do you want to continue?</i>" 
        messageBoxInfo.FooterFormatted = "Link to <a href=""http://www.infragistics.com""> Infragistics</a>." 
        messageBoxInfo.ShowHelpButton = Infragistics.Win.DefaultableBoolean.[True] 
        
        ' Create a HelpInfo object to hold the help data 
        Using helpData As New HelpInfo(helpFilePath, keyWord) 
            messageBoxInfo.HelpInfo = helpData 
            UltraMessageBoxManager.Show(messageBoxInfo) 
        End Using 
    End Using 
End Sub
private void DisplayMessage(IWin32Window owner, string message, string caption, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxDefaultButton defaultButton, string helpFilePath, string keyWord)
{
    // Create an UltraMessageBoxInfo and set all the appropriate properties
    using (UltraMessageBoxInfo messageBoxInfo = new UltraMessageBoxInfo())
    {
        messageBoxInfo.TextFormatted = message;
        messageBoxInfo.Caption = caption;
        messageBoxInfo.Buttons = buttons;
        messageBoxInfo.Icon = icon;
        messageBoxInfo.DefaultButton = defaultButton;
        messageBoxInfo.EnableSounds = Infragistics.Win.DefaultableBoolean.False;
        messageBoxInfo.MaximumWidth = 700;
        messageBoxInfo.Owner = owner;
        messageBoxInfo.Style = MessageBoxStyle.Standard;
        messageBoxInfo.HeaderFormatted = "<i>Do you want to continue?</i>";
        messageBoxInfo.FooterFormatted = "Link to <a href=\"http://www.infragistics.com\"> Infragistics</a>.";
        messageBoxInfo.ShowHelpButton = Infragistics.Win.DefaultableBoolean.True;

        // Create a HelpInfo object to hold the help data
        using (HelpInfo helpData = new HelpInfo(helpFilePath, keyWord))
        {
            messageBoxInfo.HelpInfo = helpData;
            UltraMessageBoxManager.Show(messageBoxInfo);
        }
    }
}
参照