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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to maximize a normal form similar to a child form in an MDI

Status
Not open for further replies.

srinat

Technical User
Apr 19, 2007
2
GB
Hi,

I have an MDI form and a child form in a Project exe
I refer to a dll which has a normal form
Through a menu option in the MDI, I have called the normal form (DLL)

While maximizing, the mdi form’s menu bar and tool bar are getting hidden
This needs to work exactly like a child form when you maximize

Could you help please?
 

You could try something simple like:

Me.WindowState = 0 'Do not auto-max
Me.ZOrder

Me.left = lMdiLeft + ((lMdiWidth - lMdiScaleWidth) \ 2) - 50
Me.top = lMdiTop + ((lMdiHeight - lMdiScaleHeight) \ 2) + 75
Me.Width = lMdiScaleWidth + 50
Me.Height = lMdiScaleHeight + 75

(Pass the MDI dimensions to the "child")
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top