Change Tab Without changing focus

  • Thread starter Thread starter Doctor
  • Start date Start date
D

Doctor

Is is possible to change the active tab of a tab control without using
..setfocus?

Based on what Machine a users selects in a combo box, I want to change the
current tab to reflect the proper machine.

This code is called from several different text boxes in their afterupdate
event. But when I tab out, it sets the focus to the tab instead of to the
next control. I want to change the tab, but then set focus to the next
control.

Thanks in advance.
 
Change the Value of the tab control to the desired tab page's pageindex
value:

Me.TabControl.Value = 3
 
Back
Top