I'm writing a program that generates labels at runtime, and then has them be "dragged and dropped" by the user. I have the drag and drop code working, but right now I can only get it to work on labels that I explicitly name in the code, like this:
Private Sub Control_MouseDown(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Label1.MouseDown Label2.MouseDown Label3.MouseDown
and so on...
But how can I get the event handler to handle every generated Label?
Please excuse my noobiness, the only instruction I've had in VB.NET is a one semester basichigh school course. Thanks in advance! :)