creating notifyicon in windows service
hi to all,
i want to create the notify icon in the service. i was created notify icon using the following code.
private NotifyIcon notifyIcon1 = new NotifyIcon();
this.notifyIcon1.Text = "DataBaseIntegrator";
this.notifyIcon1.Icon = ApplicationIcon;
this.notifyIcon1.Visible = true;
this.notifyIcon1.ShowBalloonTip(3000, "Service", "Service Started", ToolTipIcon.Info);
but its not working properly.what is the problem in the coding. plz help me to solve the problem.
thank u
with thanks and regards
mmary
Re: creating notifyicon in windows service
What does "not working properly" mean? What happens when you run it?
Re: creating notifyicon in windows service
thank u for ur reply. it was not showing the notifyicon.
with thanks and regards
mmary
Re: creating notifyicon in windows service
Windows Services don't have a UI. A NotifyIcon is a UI element. If there's no UI then a UI element cannot be shown. If you want a NotifyIcon then you need to create a Windows Forms application. If you need the behaviour of a Windows service then you can created both and have them communicate.