Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Removing ControlBox/MIN/MAX buttons on MDI Child Form 1

Status
Not open for further replies.

JXBURNS

IS-IT--Management
Apr 23, 2001
5
GB
Have mdiForm with 3 child forms. Would like all child forms to have no control menu box nor maximise/minimise/close icons on top right.

So set in design mode:
childform.controlbox = False
childform.maximize = False
childform.minimize = False

But at runtime the child does not display unless I set these back to true which would make logical sense.

Is there anyway either in VB6 or via API to remove these options but still allow the form to display maximised within the parent form??

Thanks

John
 
In the properties of the MDIChild form, just set ControlBox = False
 
Duh!! I tried that once as part of many combinations and did not work. Started work again this morning and works perfectly.. I thought I was going mad but obviously something screwing it up.

Many thanks

John
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top