K
khurram
Hi All,
I am working on a windows form application and we have an MDI form
with Toolbar on it. On click event of toolbar we are creating a specific
instance of a child form and showing it. Now on the child form we want to
set the focus on the first field and for that purpose we set the tab order
as well as calling the control.Focus method at the end of form constructor
method.
For some reason the child forms first field does not get the focus. On
inspection we find out that the Main MDI form is getting the focus and then
the focus moves to the child form but the first field does not get the
focus. I think it has something to do with MDI behaviour. Does anybody have
any idea ?
FYI, I am using .Net infragistics windows control (Tool bar etc.) and
running Visual Studio 2003 on Windows XP.Any help would be greatly
appreciated.
Thanks,
Khurram
I am working on a windows form application and we have an MDI form
with Toolbar on it. On click event of toolbar we are creating a specific
instance of a child form and showing it. Now on the child form we want to
set the focus on the first field and for that purpose we set the tab order
as well as calling the control.Focus method at the end of form constructor
method.
For some reason the child forms first field does not get the focus. On
inspection we find out that the Main MDI form is getting the focus and then
the focus moves to the child form but the first field does not get the
focus. I think it has something to do with MDI behaviour. Does anybody have
any idea ?
FYI, I am using .Net infragistics windows control (Tool bar etc.) and
running Visual Studio 2003 on Windows XP.Any help would be greatly
appreciated.
Thanks,
Khurram