This is a migrated thread and some comments may be shown as answers.

RadMessageBox cursor focus

1 Answer 70 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Emily Fong
Top achievements
Rank 1
Emily Fong asked on 18 Mar 2011, 11:41 AM
Hi,

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

1 Answer, 1 is accepted

Sort by
0
Richard Slade
Top achievements
Rank 2
answered on 20 Mar 2011, 10:43 PM
Hello,

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
Regards,
Richard
Tags
General Discussions
Asked by
Emily Fong
Top achievements
Rank 1
Answers by
Richard Slade
Top achievements
Rank 2
Share this question
or