cs_anbou
Messages postés5Date d'inscriptionjeudi 30 octobre 2003StatutMembreDernière intervention27 mai 2005
-
7 mai 2004 à 21:32
cs_azerty25
Messages postés1114Date d'inscriptionjeudi 19 décembre 2002StatutMembreDernière intervention 6 mai 2007
-
8 mai 2004 à 11:07
Salut,
Je voudrais faire une manip en VB6 en paramétrant CommandButton. j'ai essayé beaucoup de choses mais celà ne fonctionne pas, si quelqu'un a une solution , je suis preneur.
cs_DARKSIDIOUS
Messages postés15814Date d'inscriptionjeudi 8 août 2002StatutMembreDernière intervention 4 mars 2013130 8 mai 2004 à 07:54
Et bien tu crée un premier contrôle CommandButton nommé Cd avec la propriété Index à "0", puis tu fait un copier coller de ce contrôle 3 fois en validant "Voulez vous créer un groupe de contrôle ?".
cs_azerty25
Messages postés1114Date d'inscriptionjeudi 19 décembre 2002StatutMembreDernière intervention 6 mai 2007 8 mai 2004 à 10:56
Tu peux aussi faire ça, ça prend tout les bouttons de la form :
Dim CommandButton As CommandButton
For Each CommandButton In Me
CommandButton.Caption = "ok"
Next CommandButton
Pour en exclure, tu peux faire comme ceci :
Dim CommandButton As CommandButton
For Each CommandButton In Me
If CommandButton.Name <> "CD4" Then CommandButton.Caption = "ok"
Next CommandButton
cs_DARKSIDIOUS
Messages postés15814Date d'inscriptionjeudi 8 août 2002StatutMembreDernière intervention 4 mars 2013130 8 mai 2004 à 11:03
azerty : ta méthode est bonne s'il veut modifier tout les bouton de la feuille, mais devient très barbante s'il veux modifier uniquement les CD4 et non les 15 autres boutons par exemple...