|
-
August 11th, 2001, 07:46 AM
#1
Center CommonDialog
How can I center a CommonDialog control on the screen? It has no hWnd property, no Move method, and no events.
TIA.
-
August 11th, 2001, 01:12 PM
#2
Re: Center CommonDialog
The commonDialog control will position itself at Left = 0, Top = 0 of its container. If you add the control to a form then display it, notice its left top edge coincides with the forms left top edge. So the solution is to insert your commonDialog control within a PictureBox or Frame container. Then moving the container will position the commonDialog box wherever you want it within your form boundries.
John G
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
|