In a form (say FormA) i have 2 events "Keyup" for the form and button_click event for the button. I call FormA from the main form with a showDialog, after this i call another form (say FormB), it also has the 2 events. In both the form the button_click
event has the logic to close the form (this.close()).
Now when the FormA is opened the focus is on button, if the user presses "enter" button the button_click event is called which closes the form, the logic returns to the main form and the next line i.e. to open the FormB is executed. Now here is the wierd
part, in FormB because there is a KeyUp event handler; just after instantiation of the form directly this event handler is called.
I guess this is being routed from FormA. Shouldnt the FormA's keyup event be closed as soon as the form is closed?
View Complete Post