5 pts.
 Multiple objects in the handles of a sub – Visual Studio
I'm trying to detect if the mouse is down over a group of objects. Doing this individually for each object is not an option. I was thinking it would look like "Handles ______[1-512].MouseDown", but nothing I tried worked, and google didn't return anything useful.


Software/Hardware used:
Visual Studio 2008
ASKED: February 13, 2010  9:13 PM
UPDATED: February 15, 2010  3:38 PM

Answer Wiki:
You would have to enumerate all the events the handler is going to handle. Something like this: <pre>Private Sub Form1_MouseDown(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) <b>Handles Me.MouseDown, Button1.MouseDown, Button2.MouseDown</b> ... End Sub</pre> Each event in the event list that the procedure is going to handle must be specified in the form of <object>.<event> (not <object array>.<event> or <object list>.<event>).
Last Wiki Answer Submitted:  February 15, 2010  3:38 pm  by  carlosdl   63,580 pts.
All Answer Wiki Contributors:  carlosdl   63,580 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _