>How can you test which button on the form was last clicked or last had the focus? I have several buttons that run the same method and I need to know which button called the method.
If your buttons are all based on some custom class, when in button's when event you can save its name (or object) in the custom form's property.
Another idea would be to bind button's click in form's Init method to some custom form's method using Bindevents(). Then you would be able to find the button that clicked using aevents()
If it's not broken, fix it until it is.
My Blog