Hi all,
I want to write an application, where the childform ist maximized at start. The MDI container starts maximized, when I call my code.
If I remove the MDI relation, the form mapWindow starts maximized, but if I set the MDI container, the window starts in state normal.
I use this code:
Can anyone tell me, where is the error?
Thanks in reguards
Kostarsus
I want to write an application, where the childform ist maximized at start. The MDI container starts maximized, when I call my code.
If I remove the MDI relation, the form mapWindow starts maximized, but if I set the MDI container, the window starts in state normal.
I use this code:
Code:
MapWindow mapWindow = new MapWindow();
mapWindow.WindowState = FormWindowState.Maximized;
mapWindow.MdiParent = this;
mapWindow.Refresh();
mapWindow.Show();
Can anyone tell me, where is the error?
Thanks in reguards
Kostarsus