MDI Form

Cyber_Zeus
05-29-2006, 03:20 AM
hi!
i have a little problem.
i made a form with IsMdiContainer = True. then i use this code to open a child:

Dim FormFiglia As New frmChild
FormFiglia.MdiParent = Me
FormFiglia.Show()
FormFiglia.WindowState = FormWindowState.Maximized


i don't want the user can "deMaximize" the FormFiglia form. MaximizeBox property doesn't work....
Any suggestions?
Thanx

jwakeman
05-29-2006, 07:03 AM
How about:

FormFiglia.MinimizeBox = False

Cyber_Zeus
05-29-2006, 08:03 AM
i said demaximize, not minimize, it's different ;)

Cyber_Zeus
05-29-2006, 12:52 PM
ok. probably i was misunderstood.
let's put it in another way:
i would like the maximize button to be disabled in a child form.
how can this be done?

thanx

JNewt
05-29-2006, 08:13 PM
FormFiglia.MaximizeBox = False
Or are you looking for something else?

Cyber_Zeus
05-29-2006, 10:41 PM
the problem is that if the form has a parent

FormFiglia.MdiParent = Me

this has no effect

FormFiglia.MaximizeBox = False

i wonder why you don't try it before posting....
other ideas?

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum