Newbie: How to select a tab on a tab strip 
Author Message
 Newbie: How to select a tab on a tab strip

Hello, and TIA for what I am sure is a simple question.  I've gone
back-and-forth in my references, and cannot come up with an answer.

I have a TabStrip control with 4 tabs on a form, and have a frame on each
with the items needed.  Everything works as expected, EXCEPT ...

I want to be able to select which tab and frame is selected when the form is
shown (based on a menu selection on another form).  I can pick the frame I
want, but I'll be darned if I can figure out how to select the desired tab.

Can anyone help?

Lee Theusch



Sat, 31 May 2003 09:02:01 GMT  
 Newbie: How to select a tab on a tab strip
Lee,

Try the following;

    TabStrip1.Tabs.Item(ITEMINDEX).Selected = True

Where ITEMINDEX is the number of the tab you wish to have the focus.

Hope this helped you.

Regards,
Jonathan Roach - CEO Stormdev Software Development



Quote:

> Hello, and TIA for what I am sure is a simple question.  I've gone
> back-and-forth in my references, and cannot come up with an answer.

> I have a TabStrip control with 4 tabs on a form, and have a frame on each
> with the items needed.  Everything works as expected, EXCEPT ...

> I want to be able to select which tab and frame is selected when the form is
> shown (based on a menu selection on another form).  I can pick the frame I
> want, but I'll be darned if I can figure out how to select the desired tab.

> Can anyone help?

> Lee Theusch



Sat, 31 May 2003 09:23:37 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Selecting tab on tab strip

2. Force Tab selection using Tab Strip

3. tab or tab strip control

4. diabling a tab in a tab strip

5. Colors in tab-strip en tab-control?

6. Tab Strip help needed, Newbie?

7. How to select Tab Control tab page programmatically?

8. Tab strips:Is it possible to prevent tabs being selected?

9. tab strip control

10. Tab strip quesition

11. tab strip

12. MORE Q on Tab strips

 

 
Powered by phpBB® Forum Software