How to raise an event of button (click event) from textbox's onkeydown
event?
I have a button which have or not a click event and a textbox which have
onkeydown event.
I want add some feature on textbox such process input '*' character will
raise click event of a button.
which function or statement in c# will raise an event of button from
textbox?
Kevin Spencer - 25 Jul 2006 10:57 GMT
Why do you want to raise the Click event of a button? If you want the
KeyDown event handler for a TextBox to execute the same code as the Click
event handler for a button, put the code into a method, and call the same
method from both event handlers.

Signature
HTH,
Kevin Spencer
Microsoft MVP
Professional Chicken Salad Alchemist
Sequence, Selection, Iteration.
> How to raise an event of button (click event) from textbox's onkeydown
> event?
[quoted text clipped - 6 lines]
> which function or statement in c# will raise an event of button from
> textbox?
Herfried K. Wagner [MVP] - 25 Jul 2006 11:19 GMT
"ABC" <abc@abc.com> schrieb:
> How to raise an event of button (click event) from textbox's onkeydown
> event?
[quoted text clipped - 3 lines]
> I want add some feature on textbox such process input '*' character will
> raise click event of a button.
Call the button's 'PerformClick' method.

Signature
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>