$99 VS $1000+. UI Control for ASP.NET AJAX(contains chart and gridview).
Window Forms Message Box Control
Create custom message box in C# to Windows Forms applications
Home > WinForms UI Controls > User Manual > C# Properties in C#

Properties of Message Box WinForms Controls

The Kettic Message Box is used to display a message box to show text, buttons, and symbols that inform and instruct the user. This Message Box is also able to display system icon, status, and error information. We use the message box properties to control the title, message, buttons, and icons that will be displayed in the message box.

Properties and Methods of Message Box

Method to Customize Themes

The Message Box provides the support of custom themes of Kettic UI WinForms control suite. It is able to apply the themes that predefined in the UI components as well as build custom themes as requirements. Users of the Message Box UI control can easily change the themes to Message Box by using the ThemeName property. We can achieve this via calling the SetTheme property and passing the theme name C# code string as below.


Methods to Display Message Box

The Kettic Message Box provides a Display Method to show the message box. The Display Method is able to return the value of dialog result and provides several overloads to meet more requirements. The complete methods included in the C# API and the following are the parameters that the Display methods will accept.
  • Parent, this value is used to add the message box component by the System.Windows.Forms.IWin32Window.
  • Text, this value is used to determine the text that will be displayed in the Message Box in Windows Form application.
  • Caption, this value is used to determine the text that will be displayed in the title bar in the Message Box.
  • Buttons, this value is used to specify the buttons that will be placed in the message box, including AbortRetryIgnore, OK, OKCancel, RetryCancel, YesNo, and YesNoCancel.
  • Icon, this value is used to specify the icon that will be shown in the message box or a custom icon that will be shown, including MessageIcon.None, MessageIcon.Info, MessageIcon.Question, MessageIcon.Exclamation, and MessageIcon.Error.
  • DefaultButton, this value is used to specify the default button that will be shown in the message box.
  • RTL, this is the right to left language support value, whose valid values contain RightToLeft.No, RightToLeft.Yes, and RightToLeft.Inherit
UI Controlsfor Windows Forms
.NET WinForms UI Overview.NET WinForms UI Features.NET WinForms UI GuideC# WinForms UI DesignVB.NET WinForms UI Design
WinForms UI Controls