RTL MessageBox Arrow Navigation

2 posts, 1 answers
  1. Leon
    Leon avatar
    6 posts
    Member since:
    Jul 2012

    Posted 04 Jul 2012 Link to this post

    We are using WinForms RAD Controls (Q1 2012). We noticed strange behavior when navigating between message box buttons with keyboard arrow keys. When message box shown, YES button has focus. On left arrow key press both buttons lose focus, additional Left Arrow press set focus to NO button. The same behavior in opposite direction. Tab key navigation behaves as expected. It seems that there is some UI element, receiving focus in tab order between YES and NO buttons.
    It appears that this is very annoying behavior for our end users.

     Any idea will be appreciated

    Following code used to show message box:
    DialogResult result = RadMessageBox.Show(null, "text", "title",
        MessageBoxButtons.YesNo, RadMessageIcon.None, MessageBoxDefaultButton.Button1, RightToLeft.Yes);

  2. Answer
    Ivan Todorov
    Ivan Todorov avatar
    688 posts

    Posted 05 Jul 2012 Link to this post

    Hi Leon,

    Thank you for contacting us.

    I agree that this behavior is not correct. Therefore, I have logged it in our Public Issue Tracking System and we will address it in a future release. Here you can find the PITS entry. For the time being, you can use the following code as a workaround:
    private void radButton1_Click(object sender, EventArgs e)
        Form1.SetStyle(RadMessageBox.Instance.Controls[1], ControlStyles.Selectable, false);
        DialogResult result = RadMessageBox.Show(null, "text", "title",
            MessageBoxButtons.YesNo, RadMessageIcon.None, MessageBoxDefaultButton.Button1, RightToLeft.Yes);
    public static void SetStyle(System.Windows.Forms.Control control, ControlStyles styles, bool newValue)
        object[] args = { styles, newValue };
            BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.InvokeMethod,
            null, control, args);

    Your Telerik points have been updated for bringing this issue to our attention.

    Feel free to ask if you have any further questions.

    All the best,
    Ivan Todorov
    the Telerik team
    RadControls for WinForms Q2'12 release is now live! Check out what's new or download a free trial >>
  3. DevCraft R3 2016 release webinar banner
Back to Top