>Greetings Experts!
>
>I am utilizing the Windows Common Dialog to open multiple files from within my application. Works fine, except it is detemined to show itself in the upper left hand corner of my main form as a top level window.
>
>My question is, "How do I get it to appear centered within my main app window?"
>
>I have looked through the class properties and methods and cannot find any clue as to how.
>
>Any and all assistance is greatly appreciated.
>
Vince,
The Common Dialog positions itself below and to the right of the window that calls it. What I did was to create a small form that contained the control that I could position as desired.
In retrospect, however, I wonder if the "view is worth the climb". In order to center it, you have to take into account the screen resolution and the size of the dialog itself. Further, you would not be emulating the standard Windows behavior.
George
Ubi caritas et amor, deus ibi est