|
-
Apr 12th, 2011, 09:52 AM
#2
Re: Form metrics issue
Using the borderstyle like that is very unreliable, because it depends on various display settings. If anything you should use (Form.Width - Form.ScaleWidth)/2 , but that isn't entirely safe (and doesn't help with the vertical either).
As pictureboxes have hWnd properties, you can use API's to get their screen location, such as GetWindowRect and ClientToScreen
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|