I’ve been setting each button’s events manually, but how can I generalize this?
I suppose I could override ButtonBase, but how do I do that? I’m a relatively new C# programmer and I need this because I’m simulating a real device, so I need the cursor to change so the user will know where they can click.
If all the buttons are on the form (no nesting containers) then you can do something like this on
Form_Load()If you don’t want to touch every button on the form, you can do a simple collection and iterate over them