3
Reply

problem focusing a form

Doha Msg

Doha Msg

Nov 29 2010 4:15 AM
2.4k
Hi,
C#. .Net 4.0
-------------
I've difficulties focusing a form. This is the scenario :

MDI application, Child forms are shown tabbed, like Firefox or IE8 tabs.

From one MDIchild form (MDIchild1) I open a dialog form (dialog1), from dialog1 I call a helper method (in Helper library) to create and show an MDIchild

form (MDIchild2), then close dialog1.

Everything is OK, except that the keyboard input goes to MDIchild1, though MDIchild2 is the one that has the focus.

And I want the keyboard input goes to MDIchild2.

NB. The MDiContainer form shows that MDIchild2 is the active child form.

Answers (3)