I use VB.Net in my visual programming class and i've grown fond of the Handles keyword to easily reuse code for multiple events, but i prefer the coding style of C# and its equivalents.
I was wondering, if there is anything similar (or as easy as) attaching a single function to multiple events (or multiple events to single functions etc. as much as the Handles keyword does in VB)
Question
gizmostripe
I use VB.Net in my visual programming class and i've grown fond of the Handles keyword to easily reuse code for multiple events, but i prefer the coding style of C# and its equivalents.
I was wondering, if there is anything similar (or as easy as) attaching a single function to multiple events (or multiple events to single functions etc. as much as the Handles keyword does in VB)
Thanks :)
Link to comment
Share on other sites
8 answers to this question
Recommended Posts