|
-
May 7th, 2002, 07:23 PM
#1
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!
-
May 7th, 2002, 07:26 PM
#2
Re: how to realize that?
> then how can i avoid it to place an item at the taskbar?
MyForm.ShowInTaskbar = false;
-
May 7th, 2002, 07:55 PM
#3
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);
-
May 8th, 2002, 12:18 AM
#4
Re: how to realize that?
thanks!
to you maybe it is a minor question.
but to me it is great help!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|