Open new form in a child of an MDI form or MDI control in an MDI child form
Posted on 2007-04-11
In my C# Winforms app I have a main form that is a mdi form. in that form I open other forms as children to the main from. Within one of the child forms open I need to show a numneric keypad control at a specific location (217, 0 which is relative to the inside of the child form) . I also need this numeric keypad control to be modal. Currently, I have placed this control on the child form at an off screen location (900, 0). When I click a button I would like to the numeric keypad control to moved from 900,0 to 217,0 and be modal in the sence that only the numeric keypad is the only control that can accept user input. I would also like to be able to catch keystrokes 0-9 to simulate the user clicking on the numeric keypad buttons. I have the MDI mainform keypreview property set to true and the same for the child form.