Deklarisi sledecu funkciju:
Code:
[DllImport("user32.dll")]
public static extern bool SetForegroundWindow(IntPtr hWnd);
A onda u, recimo, DoubleClick event handler-u za NotifyIcon uradi sledece:
Code:
SetForegroundWindow(this.Handle);
Gde je
this referenca na formu;
If it's a girl then they're gonna call it Sigourney, after an actress. If it's a boy, then they're gonna call it Rodney, after Dave!