Results 1 to 2 of 2
2002-08-16, 12:27 #1
- Join Date
- Jun 2002
- Toronto, Ontario
- Thanked 0 Times in 0 Posts
Changing tab order in Tabstrip Control (VB6)
Is there a relatively painless way to change the order in the tabs of a tabstrip control?
I designed a form with 5 tabs based on info received. Now "they" want the order changed and a new tab added. Adding does not pose a problem
but I am having difficulties in changing the order of the tabs themselves.
Is there a simple resolution? My kludge workaround would be to rename the existing frame containing the tabstrip, adding a new form putting the
tabstrip in and then copying over the existing frames from the earlier form.
Any ideas anyone?
2002-08-16, 13:43 #2
- Join Date
- Mar 2002
- Thanked 28 Times in 28 Posts
Re: Changing tab order in Tabstrip Control (VB6)
The tabstrip control is not a container. That is, controls do not belong to a tab page. In this, a tabstrip is different from an SSTab control (or the MultiPage control in Microsoft Forms).
Do you have a control array of frames? In that case, you can change the index value of the frames to reflect the new tab order. After that, you only have to change the captions of the tabs.
Or do you have code like
Select Case TabStrip1.SelectedItem.Index