$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 > Get Started in C# in C#

WinForms Message Box C# Tutorial

The Kettic Message Box is designed for .NET UI designers to display a message box to show text, buttons, and symbols that inform and instruct the user. Additionally, the message box displays system icon, status, and error information. When using the message box control to display text, buttons, and symbols, we just need to call the static method, MessageBox.Display, instead of creating a new instance of the message box C# class. We use the message box properties to control the title, message, buttons, and icons that will be displayed in the message box.

How to Use the Message Box Control in C#

The Message Box tutorial shows how to use the MessageBox control in your .NET Windows Forms project. The following are the steps that show how to integrate the Message Box component into your Windows Form project and customize it in C#.
  • Open your existing Windows Forms project or create a new Windows application.
  • Drag a Kettic Message Box control and drop it on the form you are designing.
  • Import the namespaces Kettic.WinForms.Controls to your .NET Windows Forms C# project.
  • Subscribe to the Click event of the Kettic Button control for your Windows Forms project.
  • Open the Kettic button click event handler, and apply theme of Kettic Message Box
  • Call the static method, KetticMessageBox.Disply, and pass the appropriate parameters to the method as necessary to customize it.
  • The C# code below set the method, KetticMessageBox.Disply, to a dialog result variable.
  • Debug the C# .NET project via hitting the F5 button to verify if the Message Box has been customized correctly

private void button_Click(object sender, EventArgs e)
{
MessageBox.SetThemeName("Office2007Blue");

DialogResult ds = MessageBox.Display(this, "OK?", "Title", MessageBoxButtons.YesNo, MessageIcon.Confirm);
this.Text = ds.ToString();
}
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