Solved

Startup Position for Common Dialog Control

Posted on 2001-06-12
5
306 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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
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…

747 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now