'宣言 Public Overloads Shared Function Show( _ ByVal text As String, _ ByVal caption As String, _ ByVal buttons As MessageBoxButtons, _ ByVal icon As MessageBoxIcon, _ ByVal defaultButton As MessageBoxDefaultButton, _ ByVal displayHelpButton As Boolean _ ) As DialogResult
public static DialogResult Show( string text, string caption, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxDefaultButton defaultButton, bool displayHelpButton )
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) ' Show the help button on the UltraMessageBox UltraMessageBoxManager.Show(message, caption, buttons, icon, defaultButton, True) End Sub
private void DisplayMessage(IWin32Window owner, string message, string caption, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxDefaultButton defaultButton) { // Show the help button on the UltraMessageBox UltraMessageBoxManager.Show(message, caption, buttons, icon, defaultButton, true); }