Startup Position for Common Dialog Control

When I use the method ShowOpen for a common dialog control, the control appears at the top corner of the screen. How can I position the control so that it appears in the center of the screen or application window.

Thanks,

Alok.
LVL 2
alokanantAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

dtomynCommented:
Search for "VBnet Hooks: Centering the Open & Save Common Dialogs Using Callbacks" at http://www.mvps.org/vbnet/
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
rspahitzCommented:
From the VB help files:

"CommonDialog Control
...
Note   There is no way to specify where a dialog box is displayed."

Either try dtomyn's suggestion, or you'll simply have to write your own...probably not worth it.
0
dtomynCommented:
Another B for me... could you please tell me what more information you would have liked to have received?  I haven't been around E-E much these days so maybe am missing something that people are requiring.
Thanks
0
rspahitzCommented:
My understanding is that the EE engine changed so that the default grade is now a "B" unless otherwise specified by the grader.
0
dtomynCommented:
Interesting, thanks.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.