TextBox Event Not Triggering
-
I am using VS 2003 with 1.1 of the framework. (No hope of getting an upgrade :( ) Scenario I am using a textbox which allows a user to input text in order to filter a list. I am using the KeyPress event for the control to save the user from having to click a separate button. Problem The event doesn't fire sometimes. The odd time another control (e.g. a button ) gains focus and fires it's Click event. I have tried searching this site as well as Google to no avail. Has anyone encountered this type of problem?:confused:
-
I am using VS 2003 with 1.1 of the framework. (No hope of getting an upgrade :( ) Scenario I am using a textbox which allows a user to input text in order to filter a list. I am using the KeyPress event for the control to save the user from having to click a separate button. Problem The event doesn't fire sometimes. The odd time another control (e.g. a button ) gains focus and fires it's Click event. I have tried searching this site as well as Google to no avail. Has anyone encountered this type of problem?:confused:
-
I am using VS 2003 with 1.1 of the framework. (No hope of getting an upgrade :( ) Scenario I am using a textbox which allows a user to input text in order to filter a list. I am using the KeyPress event for the control to save the user from having to click a separate button. Problem The event doesn't fire sometimes. The odd time another control (e.g. a button ) gains focus and fires it's Click event. I have tried searching this site as well as Google to no avail. Has anyone encountered this type of problem?:confused:
You might want to make sure the Form's KeyPreview Property is set to true. Getting the property information from the object browser for the property: Gets or sets a value indicating whether the form will receive key events before the event is passed to the control that has focus.
Regards, Thomas Stockwell Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. Visit my homepage Oracle Studios[^]