Tab Control: How to set visible page in code

  • Thread starter Thread starter Max Moor
  • Start date Start date
M

Max Moor

Hi All,
I have a form with a multi-row tab control. I want to open the form
from Visual Basic, and set which page is visible (on top). I don't see a
property for this. Can anyone tell me how?
 
Max Moor said:
Hi All,
I have a form with a multi-row tab control. I want to open the form
from Visual Basic, and set which page is visible (on top). I don't see a
property for this. Can anyone tell me how?

Either set the Value property of the TabControl (0 = page 1, 1 = page 2), or set
focus to a control on the desired page.
 
Either set the Value property of the TabControl (0 = page 1, 1 = page
2), or set focus to a control on the desired page.

Thanks Rick. I set the Value property, as ou suggeste, and it works like a
charm. I didn't figure on there being properties associated with the tab
control that weren't in the properties window for it. Live and learn...

Max
 
Back
Top