VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Resize a form based on display settings

ROBERT JACKSON  (1 Submission)   VB function enhancement   Visual Basic 3.0   Advanced   Wed 3rd February 2021

Resizes a form based on the display settings

Assumes
How to declare an API in global module

Side Effects
You may have to play with the size to find the right percentage

API Declarations
'Declare this code in your global module
Global Const SM_CXSCREEN = 0
Global Const SM_CYSCREEN = 1
Declare Function GetSystemMetrics Lib "user32" (ByVal nIndex As Long) As Long

Rate Resize a form based on display settings (3(3 Vote))
Resize a form based on display settings.bas

Resize a form based on display settings Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters