Hello Avi,
Just reverse operation
if (this.WindowState == FormWindowState.Minimized) this.WindowState =
FormWindowState.Normal;
AG> ok i found half way, this is the code that when i press double
click
AG> on the sys tray icon the application minimized
AG>
AG> private void notifyIcon1_MouseDoubleClick(object sender,
AG> MouseEventArgs e)
AG> {
AG> if (this.WindowState == FormWindowState.Normal)
AG> this.WindowState = FormWindowState.Minimized;
AG> // Activate the form.
AG> this.Activate();
AG> }
AG> now i want the code that if i press again double click on the sys
AG> tray icon it will lunch back the application and if the
application
AG> is lunch and i press the sys tray icon again it will minimized,
how
AG> i do it?
AG>
AG> Thanks
AG>
AG> "Nicholas Paldino [.NET/C# MVP]" wrote:
AG>
Avi,
Check out the NotifyIcon class. The about page for the class
documentation in MSDN has an example which will show you what you
are trying to do.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)
Hi,
i've created an application and i want it to be minimized to the
sys
tray,
how i do it?
if you can direct me step by step even with create a small
application and
put it in the sys tray
Thanks
---
WBR,
Michael Nemtsev :: blog:
http://spaces.msn.com/laflour
"At times one remains faithful to a cause only because its opponents
do not cease to be insipid." (c) Friedrich Nietzsche