Chris Dunford
August 11th, 2001, 07:46 AM
How can I center a CommonDialog control on the screen? It has no hWnd property, no Move method, and no events.
TIA.
TIA.
|
Click to See Complete Forum and Search --> : Center CommonDialog Chris Dunford August 11th, 2001, 07:46 AM How can I center a CommonDialog control on the screen? It has no hWnd property, no Move method, and no events. TIA. John G Duffy August 11th, 2001, 01:12 PM 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 codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |