0
Answer

Event Handling problem

Ask a question
Satish

Satish

18y
1.5k
1
HI, I have a usercontrol with a testbox in it, and i am using "keydown" event of the textbox with in the control (for my specific functionality) .( i am using this control in my (win)form). On form level i have one "Button". and i set "AcceptButton" property of form to this button. My problem is, when i hit enter key while having focus on textbox of usecontrol, "Acceptbutton" property of form is executing instead of "keydown" event of usercontrol. How do i make execute, "keydown" event of usercontrol on hitting enter key? Regards, satish