S
Sumit
Hi all,
I have an MDI form in which i open some other forms.
I dont want the Control Box (having minimize, restore/maximize and
close button)
Even though I have set the controlbox property of my child forms as
false & the respective minimize & maximize box property to false, i get
the control box with restore button as enabled (when i dock my child
form in the MDI form with dockstyle as fill) which restores the
position on my child form which i need always in maximized state.
So in order to prevent the rerstoring of the window, in the form's
resize event i have written the following code:
this.WindowState = FormWindowState.Maximized;
this.ControlBox = false;
Due to this the control box doesnt appear
But now the focus has shifted from my application to somewhere else.
i.e the title bar of my application is not highlited.
If i click anywhere in my application it becomes highlited.
If i remove the code from the resize event the focus remains on the
tittle bar but the control box re-appears.
Kindly Help !!!!
Warm Regards
Sumit
I have an MDI form in which i open some other forms.
I dont want the Control Box (having minimize, restore/maximize and
close button)
Even though I have set the controlbox property of my child forms as
false & the respective minimize & maximize box property to false, i get
the control box with restore button as enabled (when i dock my child
form in the MDI form with dockstyle as fill) which restores the
position on my child form which i need always in maximized state.
So in order to prevent the rerstoring of the window, in the form's
resize event i have written the following code:
this.WindowState = FormWindowState.Maximized;
this.ControlBox = false;
Due to this the control box doesnt appear
But now the focus has shifted from my application to somewhere else.
i.e the title bar of my application is not highlited.
If i click anywhere in my application it becomes highlited.
If i remove the code from the resize event the focus remains on the
tittle bar but the control box re-appears.
Kindly Help !!!!
Warm Regards
Sumit