How do you set the size of a popup form?

ggreg

Registered User.
Local time
Today, 11:37
Joined
Aug 12, 2002
Messages
66
How do you set the size of a popup form? Would like it
a little bigger than it is coming up.
 
Can you not resize the form in design view?
 
That does not seem to work, I have tried that.
 
I am using a Continuous Forms and need to use that type.
 
Code:
DoCmd.MoveSize , , 4500, 2700

Put this in an On Load event. Makes the popup about 4w x 2.5h.
 
Thanks Autoeng ! thats is what I needed to know
 
Also If you changed the border style to "Dialog" it will keep the size that you set in design view.
 
I use the InsideHeight & InsideWidth properties to ensure my popup forms open to the size I want.

Run this in the forms OnOpen event...

'for testing
MsgBox "InsideHeight = " & InsideHeight & vbCrLf & "InsideWidth = " & InsideWidth

InsideHeight = 4000 '@ 4.25"
InsideWidth = 5000 '@ 5.25"

HTH
 

Users who are viewing this thread

Back
Top Bottom