setting the focus on a control inside the activated tab page

  • Thread starter Thread starter Carlos
  • Start date Start date
C

Carlos

Hi all,

I am trying to set the focus on the first textbox that
appears when a user clicks on ANY tabbed page of a tabbed
control. When all the components in the form get initialized,
I am able to set the focus only on one textbox control inside one
of the tabbed pages, not in any of the tabbed pages that can get activated
at any given time... Any suggestions?

Thanks,

Carlos
 
Hello, Carlos

A textbox will get focus after the form is initialized, but
when you switch from tab to tab, that won't change the focus.

Perhaps you can try to add TextBox.Focus() in the Tab_click event.

Any one has better solutions ?

--
Best Regards,
Jan Yeh

MVP(Windows CE.NET), MCAD, .NETcf Developer & Consultant
Mobile Mind Co., Ltd. @ Taiwan
 
Back
Top