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?
 
dtomynCommented:
Search for "VBnet Hooks: Centering the Open & Save Common Dialogs Using Callbacks" at http://www.mvps.org/vbnet/
0
 
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.