all groups > dotnet windows forms > june 2005 >
You're in the

dotnet windows forms

group:

Screen.PrimaryScreen.WorkingArea question


Re: Screen.PrimaryScreen.WorkingArea question Lloyd Dupont
6/28/2005 12:00:00 AM
dotnet windows forms:
you could, more simply;

set the window state to: Maximized

and? set the border to none

[quoted text, click to view]

Re: Screen.PrimaryScreen.WorkingArea question JezB
6/28/2005 12:00:00 AM
Setting to maximised will also position a window "under" the taskbar when it
pops up. I want to position a small window so that the taskbar (when it pops
up) meets it's bottom edge - it's actually a taskbar notifier window I'm
creating so you may see why I need this.

If I can only capture an event when the windows taskbar pops up ... and then
auto-hides again, I can position my little window as I need to.

[quoted text, click to view]

Re: Screen.PrimaryScreen.WorkingArea question Lloyd Dupont
6/28/2005 12:00:00 AM
allright.

I think you've to investigate: SHAppBarMessage
as in:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/shell/reference/functions/shappbarmessage.asp

or maybe: FindWindow
as in:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/windowing/windows/windowreference/windowfunctions/findwindow.asp
with class: "Shell_TrayWnd"
as explained:
http://www.devx.com/vb2themax/Tip/18312

good luck!


[quoted text, click to view]

Screen.PrimaryScreen.WorkingArea question JezB
6/28/2005 12:12:39 PM
Screen.PrimaryScreen.WorkingArea.Height gets the height of the display
excluding the taskbar. However, if your windows taskbar is set to auto-hide,
this taskbar height is NOT excluded. How can I check for this so that I can
position a window correctly so that the taskbar will not hide part of it ?

AddThis Social Bookmark Button