Information générale
Catégorie:
Codage, syntaxe et commandes
>
>I would also make the group enabling or disabling of buttons a new method on the form, so that your code is only in one place.
>
>I.love.bad.Humor(!)
How about adding a property to your button class called something like cButton_Group. Store the name of the group the button belongs to in here.
Then have a form method that runs through all Commandbuttons and enables/disables based on whether the property cButton_Group matches the group you want to change etc. Pass in the name of the group and the new Enabled status when you call the method.
-Doug-
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement