-
how to realize that?
normally when minimize an application,the app will disappear from the windows desktop and will place an item at the taskbar!
then how can i avoid it to place an item at the taskbar?
just have a notification icon,when i double-click the notification icon,the application will resume!
thanks!
-
Re: how to realize that?
> then how can i avoid it to place an item at the taskbar?
MyForm.ShowInTaskbar = false;
-
Re: how to realize that?
To elaborate:
Add a NotifyIcon component to your primary form class.
Add Event handlers for the Click and/or DoubleClick event for the NotifyIcon component and do something like the following to restore your primary form.
this.Visible = !this.Visible;
this.WindowState = FormWindowState.Normal;
Add an event handler for the forms Deactivate event and do something like the following to hide the primary form.
this.Visible = (this.WindowState != FormWindowState.Minimized);
-
Re: how to realize that?
thanks!
to you maybe it is a minor question.
but to me it is great help!