I want to open a child form inside parent with maximized windowstate.
I don't want to let the user minimize/ maximize/ close that child window,
so I set BorderStyle = None
for childwindow and also set MaximizeBox
and MinimizeBox
properties to False
, also set WindowState = Maximized
But when I run the program it shows all Minimize
, Restore
and Close
buttons for that childForm in maximized state.
but if I click Restore Down
then there is no border for that childForm..now No way to restore it to maximized state also..
Am I missing something? Is this a bug? What is the proper way of making it work correctly?
Well you can create your own form(custome form) and then inherite that custom form into mdi child form
you have to place the below code in "custom Form"
you must and should put your mdi child form
minimum size to '0'
andsize to Width = 806; Height = 730;
I hope it will helps you...