I have a lot of controls and I coded into the key up event handler that if I click Enter then it should focus for example on a button and then when you click enter on a focused button it "clicks" it and that code gets handled. The problem I encountered
was in such a scenario: I have a datagridview with a list of customers and when I enter on one of the customers it focuses on a button and when I enter that button it brings up a form to choose an option. Now on this form I also have a listbox and when I press
ENTER ON THAT listboxit focuses on the button on the bottom of that form. For some reason the enter on the button which creates the form also right away focuses on the button on the form without staying on the listbox first what should I do to disallow that?
Debra has a question