|
-
Nov 26th, 2003, 03:51 PM
#1
Thread Starter
New Member
Handling An Event For A Collection Of Controls...
In VB6 you could handle the click event of a given group of controls such as Buttons and then do a Select Case on the passed in control index.
In VB.NET you can create a sub which Handles an event for a control, and if you need to handle multiple controls, then you add more controls to the list. Here lies the problem - is it possible to have one Handles keyword that handles the events for a collection of controls (of the same type) on a given form? For example, you have 5 buttons on a form, can one 'Handles' statement effectively handle each button click without you having to type in the name of each control?
Hope that made sense...
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
|