PC Review


Reply
Thread Tools Rate Thread

Controlling display location of common dialogs

 
 
Bill Cernansky
Guest
Posts: n/a
 
      18th Nov 2004
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.

 
Reply With Quote
 
 
 
 
Herfried K. Wagner [MVP]
Guest
Posts: n/a
 
      18th Nov 2004
"Bill Cernansky" <(E-Mail Removed)> schrieb:
> 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>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

 
Reply With Quote
 
Bill Cernansky
Guest
Posts: n/a
 
      19th Nov 2004
> 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>


I'll take a look, but hooking the API in VB6 and VB.NET, I have found,
is not the same.
But thanks! Hopefully this info will lead me to a solution.

 
Reply With Quote
 
Herfried K. Wagner [MVP]
Guest
Posts: n/a
 
      19th Nov 2004
"Bill Cernansky" <(E-Mail Removed)> schrieb:
>> 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>

>
> I'll take a look, but hooking the API in VB6 and VB.NET, I have found,
> is not the same.


It's not the same because you need to adapt function declarations etc.
<URL:http://www.pinvoke.net/> can be a valuable resource for this purpose.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

 
Reply With Quote
 
Bill Cernansky
Guest
Posts: n/a
 
      26th Nov 2004
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.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Future of common file dialogs in WPF? Peter Duniho Microsoft C# .NET 0 13th Jul 2009 06:26 PM
Common Dialogs StartPosition smellican@gmail.com Microsoft VB .NET 3 30th May 2007 04:56 AM
.Net API Hooking or .Net Common Dialogs subclassing pavel.gritsay@gmail.com Microsoft Dot NET Framework Forms 3 5th Jul 2006 04:40 PM
IO Common Dialogs Andy Janssen Microsoft Dot NET Framework 2 13th Oct 2003 08:29 AM
Windows Common Dialogs in VBA? Leonard Jonas Microsoft Excel Programming 1 22nd Jul 2003 07:32 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:00 AM.