Controlling display location of common dialogs

  • Thread starter Thread starter Bill Cernansky
  • Start date Start date
B

Bill Cernansky

I've been searching for days for an answer this question, including
usenet, the web, and through various books in my Safari subscription.
I'm desperate now, because all that searching turned up jack squat and
the deadline's approaching. I've not gotten answers on other newgroups
so here I am posting to another group.

I need to be able to control the location of OpenFileDialog and
SaveFileDialog windows. The system forces them into the center of the
screen, no matter what the screen configuration.

The app I've developed (entirely working except for this problem) needs
those dialogs in a specific place.

Is ethere anyone out there who has experience with this? In VB 6 it was
a cake walk. Not so in VB.NET.

Thanks for any help.
 
Bill Cernansky said:
I need to be able to control the location of OpenFileDialog and
SaveFileDialog windows. The system forces them into the center of the
screen, no matter what the screen configuration.

The app I've developed (entirely working except for this problem) needs
those dialogs in a specific place.

Is ethere anyone out there who has experience with this? In VB 6 it was
a cake walk. Not so in VB.NET.

You will have to utilize a Win32 dialog hook for this purpose. A VB6 sample
can be found here:

DialogPosition
<URL:http://dotnet.mvps.org/vb/samples/misc/DialogPosition.zip>
 
Thanks! Now I'm getting somewhere. Like I said, I don't want more than
the minimum required knowhow to get this working.

Really! Thanks again.
 
Back
Top