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

Forcing a Mdi Child Window Size

Status
Not open for further replies.

FireFett

Programmer
Mar 31, 2000
42
US
Hello everyone.

I have a mdi app where I display a mdi child that I want to have default set to a specified size in normal view but when it gets shown its size gets reduced. Is there an api that I can use to enforce the windows default size when being shown in the mdiparent?
 
Hi

If I understand your problem correctly, Try this:

'Make sure child Form.WindowState = Normal
'In Childs FormLoad Enter:
Me.Height = XXXX
Me.Width = XXXX
'Where XXXX = your required size.

HTH
Bob


Daughters are Gods Vengeance on Fathers for being Men.
 
I have discovered the issue has to do with the ACTIVEX control I am using that allows me to create forms in an ActiveX DLL and open them in the main project as a mdi child. I have decided to redesign the forms a bit so it won't be an issue now.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top