in .net 2 if you want to show your application in system tray. you need to add notify icon to your application and set the "ShowInTaskBar" property to False. now you have the notify icon in the system tray. my problem was I could not show the form if I double click on the notify icon. I tried to BringToFront() which works but it did not work under this situation. anyway here is the solution:
private void notifyIcon1_MouseDoubleClick(object sender, MouseEventArgs e)
{
this.Visible = true;
Show();
this.BringToFront();
this.Activate();
}
I know that bringtofront function does not work but I like to see my code this way more clear :) now Activate() works perfectly.
Subscribe to:
Post Comments (Atom)
speed test glasgow
at first test upload was 20mbps, something broke it now it gives 0.07 but I am happy with 129 download and price is 16 £
-
I know its been a long time I have not write anything. because I have not learn or done any new things. I dont want to write regular meaning...
-
in .net 2 if you want to show your application in system tray . you need to add notify icon to your application and set the "ShowInTas...
-
After iphone 16 I wanted to test an android and looks like sony xperia 10 VI is nice, which is 6.1 inches, but it was narrow and longer than...
No comments:
Post a Comment