locked
how to keep focus on the parent control RRS feed

  • Question

  • I have main user control that contain 3 controls, the problem is that when I click on any child control I lose the focus of the parent control which has keydown behavior 

    any  idea how to keep the main control focused 
    Tuesday, December 11, 2012 7:12 PM

Answers

  • I have main user control that contain 3 controls, the problem is that when I click on any child control I lose the focus of the parent control which has keydown behavior 

    any  idea how to keep the main control focused 

    The solution you are seeking will give you more problem . Don't think to always focus parent .

    As you said , parent has key down behavior means there must have been keydown event handler in your code ? If it is available it should have been called by the rule of event bubbling : http://www.kirupa.com/net/event_bubbling_tunneling.htm

    SO , does your event does'nt fire ? Can we have your source code pasted here ?


    One good question is equivalent to ten best answers.

    Friday, December 14, 2012 3:54 PM