Event Handling / Trapping

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Joe Kasta (J_at_microkroff.com)
Date: 04/13/04


Date: Tue, 13 Apr 2004 12:28:34 -0400

Question:

I have a Form.. And I have a textbox within the form. I want to call the
Form's OnKeyPress method when the textbox has items being entered.
OnKeyPress is the initial event I want.

Now, is there a way to "bubble up" the OnKeyPress event from the Textbox to
the Form it resides in? Or am I forced to expose an event handler in the
Form and actually have to add it to the OnKeyPress event in the Textbox? I'd
prefer not to do the latter..



Relevant Pages