VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Center Form In PicBox (Response)

by james kahl (8 Submissions)
Category: Miscellaneous
Compatability: VB Script
Difficulty: Beginner
Date Added: Wed 3rd February 2021
Rating: (2 Votes)

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)

Download Center Form In PicBox (Response)

Download Center Form In PicBox (Response) (4 KB)

Center Form In PicBox (Response) Comments

No comments have been posted about Center Form In PicBox (Response). Why not be the first to post a comment about Center Form In PicBox (Response).

Post your comment

Subject:
Message:
0/1000 characters