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

Form Resizes at Run Time

Status
Not open for further replies.

aberry

MIS
Jun 6, 2002
24
0
0
Hi,

I have a problem that as soon as I start a project the form resizes to smaller.

Any ideas what may be causing it? It's not in the code as I have set a break on the first line that says debug.print frmSetup.height and at this point the height is different to what it is set to in design mode.

Thanks

Andrew
 
Try Setting the height and width in Form_Load(). If that doesn't work then put the resising commands in a timer control and set it to go off in a few milliseconds (maybe 200). Problems like these are the reason I changed my main focus to JavaScript.

-SE
 
I'll have it that the form will resize itself once in a while on a start. This only happens in design mode however and doesn't cary across into an EXE.

I would say if you are worried set the sizes in the Form Load

Private Sub Form1_Load()
me.Height = 3600
me.Width = 7200
End Sub

Craig, mailto:sander@cogeco.ca

In the computer industry, there are three kinds of lies:
lies, damn lies, and benchmarks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top