Click to See Complete Forum and Search --> : how to realize that?
zhoujun
May 7th, 2002, 07:23 PM
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!
nvannote
May 7th, 2002, 07:26 PM
> then how can i avoid it to place an item at the taskbar?
MyForm.ShowInTaskbar = false;
nvannote
May 7th, 2002, 07:55 PM
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);
zhoujun
May 8th, 2002, 12:18 AM
thanks!
to you maybe it is a minor question.
but to me it is great help!
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.