'Declaration Public Function New( _ ByVal helpfilepath As String, _ ByVal keyword As String _ )
public HelpInfo( string helpfilepath, string keyword )
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://es.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://es.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); } } }
Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2