Docking bug?

  • Thread starter Thread starter Johan Karlsson
  • Start date Start date
J

Johan Karlsson

Hi,

I have an MDI application with a couple of forms in it. Some of these forms
are search forms that are supposed to dock to the right of the mdi
application. The weird part is that if you open one of these searchforms
they open at the windows default location and will not dock until another
form is open. If another form is already open it docks as it should.

What did I miss?

Thanks
/Johan
 
Johan Karlsson said:
I have an MDI application with a couple of forms in it. Some of these forms
are search forms that are supposed to dock to the right of the mdi
application. The weird part is that if you open one of these searchforms
they open at the windows default location and will not dock until another
form is open. If another form is already open it docks as it should.

How do you dock the forms?
 
Example code:

'* Close all searchforms

Call AppHelper.CloseAllSearchForms()

With PatientSearchForm.GetForm

.MdiParent = m_mainForm

.Dock = DockStyle.Right

.Show()

.Focus()

End With
 
Johan Karlsson said:
'* Close all searchforms

Call AppHelper.CloseAllSearchForms()

With PatientSearchForm.GetForm

    .MdiParent = m_mainForm

    .Dock = DockStyle.Right

    .Show()

    .Focus()

End With

I am not able to dock a MDI child window (.NET 1.1, Windows XP Professional).
 
I'm using winxp aswell and the docking goes fine IF another childwindow is
open.
As soon as the only childform is the docked (ie all other closes) then the
form is "undocked".

/Johan
 
Back
Top