TabStrip selection par défaut

cs_globule Messages postés 327 Date d'inscription mardi 8 octobre 2002 Statut Membre Dernière intervention 6 octobre 2010 - 9 mars 2005 à 16:18
Gobillot Messages postés 3140 Date d'inscription vendredi 14 mai 2004 Statut Membre Dernière intervention 11 mars 2019 - 9 mars 2005 à 22:34
Bonjour,

J'ai crée un TabStrip avec 4 onglets
TOTO1, TOTO2, TOTO3, TOTO4

Je voudrais par programmation selectionner l'onglet TOTO2, mais si j'utilise le code suivant
TabStripNomMedecin.SelectedItem.Index = 2

je vais obtenir
TOTO2,TOTO1,TOTO3,TOTO4

avec TOTO1 selectionné.

Comment selectionner TOTO2 SANS changer l'ordre des tabulations

3 réponses

jpleroisse Messages postés 1788 Date d'inscription mardi 7 novembre 2000 Statut Membre Dernière intervention 11 mars 2006 27
9 mars 2005 à 19:53
0 Correspond au 1er onglet, 1 au 2ème, ainsi de suite.
Dans ce cas 0 correspond à TOTO2

Private Sub Command1_Click()
SSTab1.Tab = 1
End Sub

jpleroisse
0
jpleroisse Messages postés 1788 Date d'inscription mardi 7 novembre 2000 Statut Membre Dernière intervention 11 mars 2006 27
9 mars 2005 à 19:54
Rectification 1 correspond à TOTO2
0
Gobillot Messages postés 3140 Date d'inscription vendredi 14 mai 2004 Statut Membre Dernière intervention 11 mars 2019 34
9 mars 2005 à 22:34
i = 1 ' onglet à sélectionner 1 à 4
TabStrip1.Tabs(i).Selected = True

Daniel
0
Rejoignez-nous