C
Confessor
Having just figured out the function of the *sender* argument in control
events, I now have 85 labelX_Click procedures that perform the exact same
function: Call ColorChange(sender). That's it.
I could make one procedure to handle them all, of the form:
Sub GUITileProc([arguments here]) Handles Label1.Click, Label2.Click... all
the way to Label85.Click.
But that would be really messy, and if there's one thing I hate, it's messy
code. Is there any way that I could group those events together elsewhere,
under a "group" name, then just say that GUITileProc "Handles
GUITileClicks"?
It'd make future code modification that much easier.
events, I now have 85 labelX_Click procedures that perform the exact same
function: Call ColorChange(sender). That's it.
I could make one procedure to handle them all, of the form:
Sub GUITileProc([arguments here]) Handles Label1.Click, Label2.Click... all
the way to Label85.Click.
But that would be really messy, and if there's one thing I hate, it's messy
code. Is there any way that I could group those events together elsewhere,
under a "group" name, then just say that GUITileProc "Handles
GUITileClicks"?
It'd make future code modification that much easier.