TabPage and VS.NET

M

Maileen

Hi,

I have a TabControl which include 2 TabPages.

When user click on some Treeview items, i want to show one of the TabPages (as i want).

I tried show(), Select() or BringToFront() but nothing worked.

Could you tell me what is the way to do this ?

thanks a lot,
Maileen
 
B

beaker

Maileen said:
Hi,

I have a TabControl which include 2 TabPages.

When user click on some Treeview items, i want to show one of the
TabPages (as i want).

I tried show(), Select() or BringToFront() but nothing worked.

Could you tell me what is the way to do this ?

thanks a lot,
Maileen

To bring page 'i' to the front of 'TabControl1', it would be

TabControl1.SelectedIndex = i


Gary
 
H

Herfried K. Wagner [MVP]

Maileen said:
I have a TabControl which include 2 TabPages.

When user click on some Treeview items, i want to show one of the TabPages
(as i want).

Check out the tabcontrol's 'SelectedTab' and 'SelectedIndex' properties.
 

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