Maximized window won't go away

  • Thread starter Thread starter davecline
  • Start date Start date
D

davecline

Tribe,
WM5.0 - CF2.0 - VS2k5 - Treo700W

Due to the tiny golfball sized screen I opt for maximizing each form.

I also remove the ControlBox and MinimizeBox so as to be able to use
that extra 1/4 inch at the top of the screen.

However, when I go got to show the Today screen (WM desktop in my own
words) my app's main window continues to be shown even though the
Today's menu's are present. Tapping into my window returns my app to
the foreground.

I was able to add a menu item "Minimize" where I run this code:

IntPtr hwnd = FindWindow(null, this.Text);
ShowWindow(hwnd, 6 /* SW_MINIMIZE */);

which works well.

Yet I'd like to also have it minimize when I show the Today Desktop.

What I suppose I'll end up with is a super or base form that I can
inherit from which will handle all of this maximizing and minimizing
in a centralized location.

Any clues as to how to get my app to disappear on Today activation?

Dave Cline
~bangeye~
 
Answer:

this.FormBorderStyle = FormBorderStyle.FixedSingle;

Setting to FormBorderStyle.None makes one's app behave poorly with the
desktop.

Dave Cline
 
Back
Top