Click here to Skip to main content
15,886,578 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello


I want to show message through notification using window services.

my code is

Log("Started.......");
System.Windows.Forms.NotifyIcon notification = new System.Windows.Forms.NotifyIcon();
Log("Notification Started.......");
notification.Icon = System.Drawing.Icon.ExtractAssociatedIcon("e_mail.ico");
Log("Notification Icon Started.......");
notification.Visible = true;
notification.ShowBalloonTip(30, "New Mail", "Jimuta Bahan Sahu", System.Windows.Forms.ToolTipIcon.Info);
Log("Notification Show.......");
System.Threading.Thread.Sleep(5000);


The icon e_mail.ico is inside the project and i have put it in c:/windows/system32 also. in each line i have put the log file to check the error but it is working fine but notification is not showing after creation the setup file.


Any Solution.....
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900