|
-
May 22nd, 2003, 11:16 PM
#1
Thread Starter
New Member
Using Class Function to control a Window Form ?
I have a problem , which I need to write out a function which is to enabled and disabled button for a form.How can I do it ?
my class function will recevied an Action and the FormName, then base on the Action and FormName, I will enabled and disabled button for that form.
Example :
Form1 :
This form got 7 button :
Button1,Button2,Button3,Button4,Button5,Button6,Button7
When Button1 onclick , I will call the class function to enabled Button2,Button3,Button4
and disabled Button5,Button6,Button7.
I want to do like this, because I got 200 form , and If I not do like this , each form I also need to put in the same code to control to button.
If I got this class function , I just call the function , then everthing will be done.
Anyone can help me ?
Thank you ~~~
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|