VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Center Form In PicBox (Response)

james kahl  (8 Submissions)   Miscellaneous   VB Script   Beginner   Wed 3rd February 2021

This is in response to M1K3's submission about centering a form over a picture box. I don't want to rip into the flaws of his methodology and will only say that there were far too many assumptions on his part. I think this method is a much better alternative since you don't need to make sure that your form is a specific size, or the parent form or picture box has their properties set to specific values. Should be good for beginners since I use SystemParametersInfo with SPI_GETNONCLIENTMETRICS to determine border width of forms and height of Titlebars for forms.

API Declarations
SystemParametersInfo

Rate Center Form In PicBox (Response) (2(2 Vote))

Download Center Form In PicBox (Response)

Center Form In PicBox (Response) Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters