Tab Control: How to set visible page in code

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?
 
R

Rick Brandt

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.
 
M

Max Moor

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top