Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 346
  • Last Modified:

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.
0
alokanant
Asked:
alokanant
  • 3
  • 2
1 Solution
 
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

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now