Follow the code:
internal static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
RadControl.EnableRadAutoScale = true;
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
string text = "Are you sure you want to exit?";
string caption = "Application";
RadMessageIcon icon = RadMessageIcon.Question;
RadMessageBox.Show(text, caption, MessageBoxButtons.YesNo, icon);
RadMessageBox.Show(text, caption, MessageBoxButtons.YesNoCancel, icon);
When the application is run on a main monitor with 125% DPI scaling, the following result is observed:
Workaround:
RadControl.EnableRadAutoScale = false;