General Development

Declaring an event handler for all buttons in a form – DeathFox

DeathFox
Member

Posts: 57
From:
Registered: 04-25-2006
Like this, I tried using that code below but declare all the names on the buttons (and the form has 30 buttons) so it really is long

Private Sub Highlight(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles button1.gotfocus, button2.gotfocus...

So is there another way to just make it so that it wont be so long?