Solved

Startup Position for Common Dialog Control

Posted on 2001-06-12
5
319 Views
Last Modified: 2008-02-01
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
Comment
Question by:alokanant
  • 3
  • 2
5 Comments
 
LVL 5

Accepted Solution

by:
dtomyn earned 20 total points
ID: 6182334
Search for "VBnet Hooks: Centering the Open & Save Common Dialogs Using Callbacks" at http://www.mvps.org/vbnet/
0
 
LVL 22

Expert Comment

by:rspahitz
ID: 6182372
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
 
LVL 5

Expert Comment

by:dtomyn
ID: 6182510
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
 
LVL 22

Expert Comment

by:rspahitz
ID: 6182585
My understanding is that the EE engine changed so that the default grade is now a "B" unless otherwise specified by the grader.
0
 
LVL 5

Expert Comment

by:dtomyn
ID: 6182656
Interesting, thanks.
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question