form size

Wesley Morgan

Registered User.
Local time
Today, 08:25
Joined
Aug 18, 2003
Messages
17
I am trying to set a form into the middle of screen with a size of 2.5" tall and 4" wide. The form comes up as full screen. What am I missing?
 
Set the form's Pop Up property to Yes.
 
You can force the size of your forms. Try this in the forms OnOpen event...
Code:
Private Sub Form_Open(Cancel As Integer)

'    Use this message box for testing    
'    MsgBox "InsideHeight = " & InsideHeight & vbCrLf & vbLf & "InsideWidth = " & InsideWidth
    
    InsideHeight = 5050
    InsideWidth = 2835
    
End Sub
HTH
 

Users who are viewing this thread

Back
Top Bottom