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

MDIFORM Problem

Status
Not open for further replies.

selimsl

Programmer
Aug 15, 2005
62
TR
Hi!

I have a MDIForm,and a another form(Form1).The MDIChild property of Form1 is set to True.I set the widht and height of form1.
Exp:Form1.widht=5000
Form1.height=4000

When I open Form1 using a button ,which is located on MDIForm ,Form1 appears with a different size.
What can I do to prevent this problem?

Thanks in advice...
 
In the Form_Load event for the child form, manually set the height and width.

Ex..

Private Sub Form_Load()

Me.Width = 5000
Me.Height = 4000

End Sub


-George

Strong and bitter words indicate a weak cause. - Fortune cookie wisdom
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top