W
Wan Andii
I have two MDI Child forms that are created in a MDI Parent. Here is
the issue when switching between
the two child forms by clicking anywhere on the child forms (Not just
their titlebars) the input focus shifts but the forms do not get the
focus (bringtofront). Also under MDI 'Window Menu' the forms do not
have the correct check order. The childforms have panels, groups,
textboxes etc. Perhaps I'm going about this the wrong way
Any feedback is appreciated. Thanks in advance
- Wan
---------------------------------
Public mMDIParent As Form (in datamodule)
' --- In MDI form (on load event)...
Dim form1 As New Form1
form1.MDIParent = Me
mMDIParent = Me
form1.Show()
' --- In form1 (on button click event)...
Dim form2 As New Form2
form2.MDIParent = mMDIParent
form2.WindowState = FormWindowState.Normal
form2.Show()
run the application...
the issue when switching between
the two child forms by clicking anywhere on the child forms (Not just
their titlebars) the input focus shifts but the forms do not get the
focus (bringtofront). Also under MDI 'Window Menu' the forms do not
have the correct check order. The childforms have panels, groups,
textboxes etc. Perhaps I'm going about this the wrong way
Any feedback is appreciated. Thanks in advance
- Wan
---------------------------------
Public mMDIParent As Form (in datamodule)
' --- In MDI form (on load event)...
Dim form1 As New Form1
form1.MDIParent = Me
mMDIParent = Me
form1.Show()
' --- In form1 (on button click event)...
Dim form2 As New Form2
form2.MDIParent = mMDIParent
form2.WindowState = FormWindowState.Normal
form2.Show()
run the application...