Please look at the attached code and run it before you post. (Directions are included in a label in the app)
I also have a prior post that deals with the Link-Label issue alone, but the solution (make a label that looks like a link-label) won't cut it for buttons.
Post dealing with Link-Labels
Here is an overview of the problem;
I have an MDI Parent form that dynamically loads MDI Child forms based off of a Treeview Node select event.
When the MDI child form loads and you press a button or link label, a dialog form opens.
Now at this point, switch nodes to the same type and press enter in ANY textbox.
Watch in amazement as the LinkClick or Button Click event fires and NOT the keypress event of the textbox.
PLEASE help me figure out what I am missing here!
Is it a focus issue? Do I have to trigger some different event? Anything?!