RadMessageBox cursor focus

2 posts, 0 answers
  1. Emily Fong
    Emily Fong avatar
    27 posts
    Member since:
    Sep 2012

    Posted 18 Mar 2011 Link to this post


    I display RadMessageBox in a textbox's validating.  After I press OK button in the messagebox, the cursor is focus in the current control instead of next control.
    However, if I use Visual Studio's messagebox, the cursor will stay in the next control after I press OK button.
    So, how can I solve it?

    p.s. The step to produce this problem as following:
    1. Click on TextBox1 in form
    2. Tab away from TextBox1
    3. Message prompt out.
    4. Use mouse to click [OK] button in message box.
    5. After the message box disappear, the cursor stay in textbox1 (it should stay in textbox2).


    Imports Telerik.WinControls
    Public Class Form1
        Private Sub TextBox1_Validating(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles TextBox1.Validating
            RadMessageBox.Show("Testing", Me.Text, MessageBoxButtons.OK, RadMessageIcon.Info)
        End Sub
    End Class
  2. Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 20 Mar 2011 Link to this post


    Due to the nature of the RadMessageBox, to the best of my knowledge, there is currently no workaround for this.
    If I can come up with one, I'll be sure to let you know
Back to Top