winform: minimise window to systray ?

  • Thread starter Thread starter Tom
  • Start date Start date
Tom,

Basically, you would minimize your form normally, and then set the
ShowInTaskBar property to false, which will prevent the form from being
shown in the taskbar.

You also need to place an instance of the NotifyIcon class on your form,
so that it can show something in the system tray.

Hope this helps.
 
Hi,

What is the event triggered when the winform is minimised ?

thanks

Tom

Nicholas Paldino said:
Tom,

Basically, you would minimize your form normally, and then set the
ShowInTaskBar property to false, which will prevent the form from being
shown in the taskbar.

You also need to place an instance of the NotifyIcon class on your form,
so that it can show something in the system tray.

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Tom said:
Hi friends

I was wondering how can I minimise a winform into the system tray ?

Thanks
Tom
 
Tom,

Hook up to the SizeChanged event, and in the event handler, check the
WindowState property to see if it is minimized.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Tom said:
Hi,

What is the event triggered when the winform is minimised ?

thanks

Tom

in
message news:#[email protected]...
Tom,

Basically, you would minimize your form normally, and then set the
ShowInTaskBar property to false, which will prevent the form from being
shown in the taskbar.

You also need to place an instance of the NotifyIcon class on your form,
so that it can show something in the system tray.

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Tom said:
Hi friends

I was wondering how can I minimise a winform into the system tray ?

Thanks
Tom
 
Back
Top