Hello everyone,
Firstof all, my very best wishes to all of you.
In a project with a MDI-form and several child-forms, the Windowstate of both MDI-form and child-forms is set to Maximized.
However, the first time I open a child-form, it is never displayed Maximized. The second and third are Maximized. It does not matter which of the three forms I open first; it is always the first that is not Maximized.
My code for opening the child-form is as follows:
Private fVerkoopschermTickets As frmVerkoopschermTickets
If IsNothing(fVerkoopschermTickets) OrElse fVerkoopschermTickets.IsDisposed Then
fVerkoopschermTickets = New frmVerkoopschermTickets
fVerkoopschermTickets.MdiParent = Me
fVerkoopschermTickets.Show()
Else
fVerkoopschermShop.BringToFront()
End If
Also, if I add to the code
frmVerkoopschermTickets.WindowState = FormWindowState.Maximized
or
fVerkoopschermTickets.WindowState = FormWindowState.Maximized
it does not have any result.
Does anyone have any idea?
Many thanks and greetings from Brugge (Bruges - Belgium),
Michel
Firstof all, my very best wishes to all of you.
In a project with a MDI-form and several child-forms, the Windowstate of both MDI-form and child-forms is set to Maximized.
However, the first time I open a child-form, it is never displayed Maximized. The second and third are Maximized. It does not matter which of the three forms I open first; it is always the first that is not Maximized.
My code for opening the child-form is as follows:
Private fVerkoopschermTickets As frmVerkoopschermTickets
If IsNothing(fVerkoopschermTickets) OrElse fVerkoopschermTickets.IsDisposed Then
fVerkoopschermTickets = New frmVerkoopschermTickets
fVerkoopschermTickets.MdiParent = Me
fVerkoopschermTickets.Show()
Else
fVerkoopschermShop.BringToFront()
End If
Also, if I add to the code
frmVerkoopschermTickets.WindowState = FormWindowState.Maximized
or
fVerkoopschermTickets.WindowState = FormWindowState.Maximized
it does not have any result.
Does anyone have any idea?
Many thanks and greetings from Brugge (Bruges - Belgium),
Michel