MessageBox / MsgBox Assistant

Top  Previous  Next

 C#   VB.NET   VB6   VBA 

The MessageBox / MsgBox Assistant feature allows you to easily generate message boxes.

MZ-Tools offers the following ways to launch the MessageBox Assistant:

  • The MZ-Tools | Other Utilities | MessageBox / MsgBox Assistant menu.
  • The MessageBox / MsgBox Assistant button on the MZ-Tools - Other Utilities toolbar.
  • In Visual Studio 2015 and higher, the keyboard shortcut associated with the MZTools.MessageBoxAssistant command.
  • In Visual Studio 2013 and lower, the keyboard shortcut associated with the MZTools8.MessageBoxAssistant command.
  • In VB6 / VBA, the keyboard shortcut associated with the MsgBox Assistant feature.

The MessageBox / MsgBox Assistant window is the following:

MessageBoxAssistant

In this window you can enter the following:

  • Title: the title of the message box. It can be a custom title or:
    • In Visual Studio, the value of System.Windows.Forms.Application.ProductName (AssemblyProduct attribute in the AssemblyInfo file).
    • In VB6, the value of App.Title.
    • In VBA, the value of Application.Name.
  • Text: the prompt of the message box.
  • Icon: the icon of the message box, if any.
  • Buttons and default button: the combination of buttons of the message box and the button which will be preselected when showing the message box.
  • Options: several option values that you can check.

Once you have entered all the values, you can:

  • Preview the message box.
  • Insert the message box code into the current method.
  • Copy the message box code to the clipboard for later use.

Remarks:

  • In Visual Studio, this feature doesn't support WPF or Silverlight forms.

See Also:

Keyboard Shortcuts Options