|
-
Nov 26th, 2008, 11:58 PM
#1
Thread Starter
PowerPoster
[RESOLVED] [02/03] Easiest way to detect the status change
Hi all,
I've few number of text boxes and check boxes on different tab pages. On the change of the status on any control, I want to enable a button. What's the easiest way to do it?
If I try with the state change of each control I've to use large number of methods. I want to avoid it as much as possible.
Thanks.
“victory breeds hatred, the defeated live in pain; happily the peaceful live giving up victory and defeat” - Gautama Buddha
-
Nov 27th, 2008, 12:17 AM
#2
Re: [02/03] Easiest way to detect the status change
You can just use one method to handle multiple events. You just put each event in the Handles clause of the method. They don't even have to be the same event, as long they have the same signature. You can use the same method to handle TextChanged events of TextBoxes and SelectedIndexChanged events of ComboBoxes because they both have the same signature.
-
Nov 28th, 2008, 02:03 AM
#3
Thread Starter
PowerPoster
Re: [02/03] Easiest way to detect the status change
Thanks lol, I've solve the problem.
“victory breeds hatred, the defeated live in pain; happily the peaceful live giving up victory and defeat” - Gautama Buddha
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
|