Hello!
If I create a simple RadForm with a single RadTextBox, this text box is selected (gets input focus and shows cursor) automatically when the form is shown. If I create a simple RadForm with a RadPageView and place the RadTextBox into the page, it is not selected automatically when the form is shown.
Even the following code does not select the text box:
protected override void OnLoad(EventArgs e) { base.OnLoad(e); radTextBox1.Focus(); radTextBox1.Select(0, 0); } The following workaround does work, but I do not think this is a way I should go:
protected override void OnLoad(EventArgs e) { base.OnLoad(e); Application.Idle += Application_Idle; } void Application_Idle(object sender, EventArgs e) { Application.Idle -= Application_Idle; radTextBox1.Focus(); radTextBox1.Select(0, 0); } So, how should I correctly select the text box in the PageView page when the form is shown?
Thank you.