Last Updated: 22 Jun 2022 12:13 by Iprel

Follow the code:

    internal static class Program
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        static void Main()
            RadControl.EnableRadAutoScale = true;

            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:


RadControl.EnableRadAutoScale = false;

Last Updated: 04 May 2022 07:02 by n/a
Last Updated: 19 Jan 2022 13:24 by ADMIN
Created by: alex
Comments: 1
Category: MessageBox
Type: Feature Request
it would look like a standard message or a dialog with only an automatic response (which would also be configured) after the timer expires
Last Updated: 13 May 2020 05:42 by ADMIN

Here's the call I'm making. The ApplicationWindow property type is IWin32Window.  It is coming from an application that inherits from CWinApp.  The message is displayed in the upperleft corner of the screen.

RadMessageBox.Show(gtApp.ApplicationWindow, Resources.SpatialQueryNoRecords, app.Name, MessageBoxButtons.OK, RadMessageIcon.Info);

A similar MessageBox call centers on my application just fine:

MessageBox.Show(gtApp.ApplicationWindow, Resources.SpatialQueryNoRecords, app.Name, MessageBoxButtons.OK, MessageBoxIcon.Information); 

Last Updated: 06 Apr 2020 04:37 by ADMIN

Hi Support, 

I just upgrade my winform plugin version from 2018.1.220.40 to 2020.1.218.40. I notice the popup display for RadMessage has shifted from center of the open form to center of the mdiForm (main application).

Below is the code that I used:
RadMessageBox.Show(this, "No Record Found", "Information", System.Windows.Forms.MessageBoxButtons.OK, new System.Drawing.Bitmap(Properties.Resources.info), System.Windows.Forms.MessageBoxDefaultButton.Button1);

Please advice on how can I rectify this issue.

Thank you.

Last Updated: 19 Mar 2020 14:37 by ADMIN
Release R2 2020 (LIB 2020.1.323)

when set RadMessageBox.UseCompatibleTextRendering = false;

at runtime is generated System.StackOverflowException. 

To workaround:

private void RadForm1_Load(object sender, EventArgs e)

    foreach (Control control in RadMessageBox.Instance.Controls)
        RadControl radControl = control as RadControl;
        if (radControl != null)
            radControl.UseCompatibleTextRendering = false;