change tab order

I have 3 tabs and want to change their order.  How can I change the order of my tabs on my form?

Thanks Chad
chadmanvbAsked:
Who is Participating?
 
appariConnect With a Mentor Commented:


If you want to change the order at design time itself, tabcontrols properties window select tabpages property window and there it displays current tab pages added to the tab control you can select a page and rearrange the order by clickig up and down arrows.
0
 
Éric MoreauSenior .Net ConsultantCommented:
Hi chadmanvb,

You can use this:

With TabControl1.TabPages
    .Clear()
    .Add(TabPage3)
    .Add(TabPage2)
    .Add(TabPage1)
End With

See an article I wrote in May 2004 from http://emoreau.s2i.com/ for more tips on the TabControl.

Cheers!
0
 
chadmanvbAuthor Commented:
That is what I needed.  Thanks, Chad
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.