VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Size a form exactly

Cory Ului  (5 Submissions)   Miscellaneous   Visual Basic 3.0   Beginner   Wed 3rd February 2021

Sizes a form to an exact size. Ever tried to size a form to say. 320 by 240 like this
Me.Width = 320 * Screen.TwipsPerPixelX
Me.Height = 240 * Screen.TwipsPerPixelY
But you want the border and title bar at the same time. And it doesn't look right at all.
Heres your answer!
(I dunno if anyone has done this before if they have. cool.) I made this years ago, but didn't know of vbcoders then.

Assumes
'Either use 'I.E. 'Call Size(Me, 320, 240) 'or 'Size Me, 320, 240 'Same result. 'Size [Form], [Width], [Height]

Rate Size a form exactly (3(3 Vote))
Size a form exactly.bas

Size a form exactly Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters