>Hi,
>
>The form have 20 command buttons,
>I want to change the Command Button Background Color by
>using the user define form method, How can I pass the button object to
>the method ? Then the method change background color of the parent object button.
>
>Please advise.
>
>Thanks.
>Derek
You may want to create a new command button class. In this class you'll create a method called
BackgroundColorChange with one line thisform.BackgroundColorChange(this)
And add a new method to the form that will have
lparameters toButton
a reference to the button's object.
If it's not broken, fix it until it is.
My Blog