|
-
May 3rd, 2007, 05:58 AM
#1
Thread Starter
Addicted Member
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
-
May 3rd, 2007, 06:14 AM
#2
Re: creating notifyicon in windows service
What does "not working properly" mean? What happens when you run it?
-
May 3rd, 2007, 06:22 AM
#3
Thread Starter
Addicted Member
Re: creating notifyicon in windows service
thank u for ur reply. it was not showing the notifyicon.
with thanks and regards
mmary
-
May 3rd, 2007, 07:25 PM
#4
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|