[Solved] TabControl and focus

Answered
0
0

Ciao,

I can't change the view of a tab control page by code
i tried with:

tabControl.TabPages(0).Select()

tabControl.TabPages(0).Focus()

but it does not work
 
  • You must to post comments
Best Answer
0
0

Hi Messere,

Actually, the Select() method is used for the focus and the keyboard, it’s not meant to switch to a TabPage.

Using the SelectedIndex or SelectedTab Property is the correct way to programmatically change the views on a TabControl.

HTH,
Alaa

  • You must to post comments
0
0
it works!
Thanks so much!
  • You must to post comments
0
0

Hi Messere,

Thank you for reporting this issue.

As a workaround, I would suggest using the SelectedIndex or SelectedTab Property.

Let me know if there’s anything else you would like me to help with.

Best wishes,
Alaa

  • You must to post comments
Showing 3 results
Your Answer

Please first to submit.