Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
560
Setting focus to textbox..
posted

Hello,

I have some issues setting the focus to a textbox after the form loaded. I tried setting the focus in the form activated event, but the focus won`t be given to the textbox. It seems like the form is still at work with the WinTab Control when the activated event is fired. After the complete load the first tab got the focus. Is there another event on the form that will fire after everything is finished? Or is there a workaround to set the focus when using the WinTab control?

 Thanks,

Stefan

Parents
No Data
Reply
  • 560
    posted

    I solved the problem by myself. When I call myTextBox.Select() instead of myTextBox.Focus() is just works fine..

Children
No Data