Home All Groups Group Topic Archive Search About

VB.net 2008 : how can I get the Printdialog to show up in the CENTER of the screen ?

Author
15 May 2009 9:30 AM
Screaming Eagles 101
Since the dialog does not have a location property or similar it seems I
can't get the dialog to show up in the center of my application (center
screen).

--
Filip
http://www.ww2airborne.net/
Official Site of the 101st Airborne - 463rd PFA
skype: airborne463pfa-fiwi
[It's nice to be important, but it's more important to be nice!]
----------------------------------------------------------------

Author
20 May 2009 11:17 AM
Screaming Eagles 101
Show quote Hide quote
" Screaming Eagles 101" <see_my_site@online.please> schreef in bericht
news:4a0d362d$1_5@news4us.nl...
> Since the dialog does not have a location property or similar it seems I
> can't get the dialog to show up in the center of my application (center
> screen).
>
> --
> Filip
> http://www.ww2airborne.net/
> Official Site of the 101st Airborne - 463rd PFA
> skype: airborne463pfa-fiwi
> [It's nice to be important, but it's more important to be nice!]
> ----------------------------------------------------------------
>
Realy nobody ?
Author
20 May 2009 4:22 PM
Peter Duniho
On Wed, 20 May 2009 04:17:31 -0700,  Screaming Eagles 101 
<see_my_site@online.please> wrote:

> " Screaming Eagles 101" <see_my_site@online.please> schreef in bericht
> news:4a0d362d$1_5@news4us.nl...
>> Since the dialog does not have a location property or similar it seems I
>> can't get the dialog to show up in the center of my application (center
>> screen).
>>
> Realy nobody ?

Really, nobody.  It doesn't look like the kind of thing .NET supports.

Using a combination of message filtering and p/invoke, you can probably 
relocate the dialog as it's shown.  But as far as I know, there's nothing 
built-in to do what you want.

Pete