Try this
if (this.WindowState != FormWindowState.Normal)
this.WindowState = FormWindowState.Normal;
this.Opacity = 100;
this.TopMost = true;
this.Show();
"Avi G" <Av**@discussions.microsoft.com> wrote in message
news:0E**********************************@microsof t.com...
i try this and it's not coming back from the Sys Tray, the problem is that
when i minimize the form1 it doesn't go to the tool bar it minimized to
the
Sys Tray.
"Chris Dunaway" wrote:
Avi G wrote:
> application to the sys tray but i don't know how to bring it up back by
> double cliking the sys tray icon
>
How about this (watch for typos):
private void SysTrayIcon_MouseDoubleClick(...)
{
if (this.WindowState == FormWindowState.Normal)
{
this.Hide();
}
else
{
if (this.WindowState == FormWindowState.Minimized)
{
this.Visible = true;
}
}
}