Asked By Tejaswini Prashant J
20-Nov-09 07:37 AM
Hi,
In .net windows application, I have NofifyIcon, I want that, when I will doubkleClick on this, it should bring the form to front.
My code snippets are
private void myAppIcon_MouseDoubleClick(object sender, MouseEventArgs e)
{
if (ShowChatWindowOnNotify == true && IsWindowMinimized == true)
{
// Show();
this.Instance.Show();
WindowState = FormWindowState.Maximized;
ShowChatWindowOnNotify = false;
IsWindowMinimized = false;
}
this.Activate();
this.BringToFront();
this.Focus();
}
Here it's opening the form, but not getting it to the front from the other open windows.
can anybody help me in this?