N
Never Best
I have an application. I want it so when the user minimizs the window it
goes into the system tray, and while in the system tray I don't want it in
the "Alt-Tab" list. (When the program starts it starts in the system tray
aswell; only shows main window if they double click).
Currently to achive this when the user minimizes I have to set
"ShowInTaskbar - false" "ControlBox - false" "Size - 0,0" "Text - null"
"FormBorderStyle - FixedToolWindow". And then reset everything when they
double click the system tray. Is there a simplier solution to this? (The
reasion I have to set "Text - null" and "ControlBox - fasle" is because Size
wont go to 0,0 if they arn't set when FormBorderStyle is a ToolWindow).
Ideally I would like to simply set "WindowState - minimized"
"ShowInTaskbar - false" but when "FormBorderStyle - ToolWindow" is set the
window wont minimize to taskbar (it goes into a box above the start menu
icon), but the program always shows up in the Alt-Tab list unless I set the
FormBorderStyle to ToolBar.
I use VS.NET 2005. I tried "this.Visable = false" or "this.Hide()" but for
some reasion it doesn't work for my main window if I set "FormBorderStyle -
ToolWindow" (this.Visable doesn't seem to work for me even if borderstyle
isn't changed). I do the command right under my "InitializeComponent();" in
the form constructor... This is because its my main window? or should it be
working...
Any help would be appresiated. Thanks
NvrBst
goes into the system tray, and while in the system tray I don't want it in
the "Alt-Tab" list. (When the program starts it starts in the system tray
aswell; only shows main window if they double click).
Currently to achive this when the user minimizes I have to set
"ShowInTaskbar - false" "ControlBox - false" "Size - 0,0" "Text - null"
"FormBorderStyle - FixedToolWindow". And then reset everything when they
double click the system tray. Is there a simplier solution to this? (The
reasion I have to set "Text - null" and "ControlBox - fasle" is because Size
wont go to 0,0 if they arn't set when FormBorderStyle is a ToolWindow).
Ideally I would like to simply set "WindowState - minimized"
"ShowInTaskbar - false" but when "FormBorderStyle - ToolWindow" is set the
window wont minimize to taskbar (it goes into a box above the start menu
icon), but the program always shows up in the Alt-Tab list unless I set the
FormBorderStyle to ToolBar.
I use VS.NET 2005. I tried "this.Visable = false" or "this.Hide()" but for
some reasion it doesn't work for my main window if I set "FormBorderStyle -
ToolWindow" (this.Visable doesn't seem to work for me even if borderstyle
isn't changed). I do the command right under my "InitializeComponent();" in
the form constructor... This is because its my main window? or should it be
working...
Any help would be appresiated. Thanks
NvrBst