select a different tab page 
Author Message
 select a different tab page

I am on tab page 2 and want to change to the first one - I have tried

                        this.myTabs.TabPages[0].Focus();
                        this.myTabs.TabPages[0].Select();
                        this.myTabs.SelectedTab = 0;

but none work?

thanks!

Tim



Sat, 07 May 2005 05:42:23 GMT  
 select a different tab page


Quote:
> I am on tab page 2 and want to change to the first one - I have
> tried

>                this.myTabs.TabPages[0].Focus();
>                this.myTabs.TabPages[0].Select();
>                this.myTabs.SelectedTab = 0;

> but none work?

Tim,

this.myTabs.SelectedTab = this.myTabs.TabPages[0];

Hope this helps.

Chris.
-------------
C.R. Timmons Consulting, Inc.
http://www.crtimmonsinc.com/



Sat, 07 May 2005 07:37:12 GMT  
 select a different tab page
thanks!


Quote:


> > I am on tab page 2 and want to change to the first one - I have
> > tried

> >                this.myTabs.TabPages[0].Focus();
> >                this.myTabs.TabPages[0].Select();
> >                this.myTabs.SelectedTab = 0;

> > but none work?

> Tim,

> this.myTabs.SelectedTab = this.myTabs.TabPages[0];

> Hope this helps.

> Chris.
> -------------
> C.R. Timmons Consulting, Inc.
> http://www.crtimmonsinc.com/



Sun, 08 May 2005 20:33:01 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Tab positions on a tab page

2. displaying different list controls based on selected tab from tab control.

3. Q:How to select a different table

4. Selecting between two (and more) different resource files

5. CPropertySheet Tab Select Message

6. Selecting a tab

7. MDI app, but all children maximised with a tab control to select

8. Selecting a tab

9. How to color CTabCtrl's tabs to different color

10. capture CPropertySheet event-which page is selected

11. How to accelerator select of pages on PropertySheet

12. how to print texts in different orientations at the same page

 

 
Powered by phpBB® Forum Software