SftMessageBox shows a message box in the mode of the application's SftStyle component: light, dark or with the colors of the Windows contrast theme. The Windows message box, which the Windows Forms MessageBox class shows, is always light.

The SftMessageBox.Show method has every overload of MessageBox.Show and takes the same arguments: the text, the caption, the MessageBoxButtons, MessageBoxIcon, MessageBoxDefaultButton and MessageBoxOptions values, the Help button and the help file arguments. It returns the same DialogResult values. An application changes its message boxes by replacing the class name:
C#
if (SftMessageBox.Show(this, "Save the changes to the order?", "Orders", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Question) == DialogResult.Yes) SaveOrder();
VB
If SftMessageBox.Show(Me, "Save the changes to the order?", "Orders", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Question) = DialogResult.Yes Then SaveOrder() End If
The message box is laid out like the message box of Windows 11: the icon and the text in a content area, the buttons in a strip below it. It shows the stock icons of Windows and plays their sounds, and behaves as the Windows message box does:
MessageBoxOptions.DefaultDesktopOnly and MessageBoxOptions.ServiceNotification show the Windows message box instead, without an owner and without the Help button, since such a message box appears on a desktop the application's windows are not on.
MessageBoxButtons.CancelTryContinue and the results DialogResult.TryAgain and DialogResult.Continue exist in .NET 10 (or later) only. On the .NET Framework the message box accepts the value 6 for these buttons and returns the values 10 (Try Again) and 11 (Continue).
The message box uses the mode of the application's SftStyle component (SftStyle.DarkModeActive and SftStyle.HighContrastActive). An application without an SftStyle component gets a message box that follows the Windows light/dark setting and contrast theme, but every application that uses SftStyle/NET has an SftStyle component, which carries the license the message box needs (see Licensing and Contents).