PC Review


Reply
Thread Tools Rate Thread

Adding a tray icon for a console app?

 
 
melon
Guest
Posts: n/a
 
      7th May 2007
Hello,

I have written a console application, but now I would like to add a
notify icon in the system tray. What is the easiest way to do it? It
would be painful if I have to convert it to a Windows App.

Thanks.

 
Reply With Quote
 
 
 
 
Nicholas Paldino [.NET/C# MVP]
Guest
Posts: n/a
 
      7th May 2007
melon,

The problem with the console app is that there is no pump for windows
messages. You could run a message pump in a separate thread, and then have
a NotifyIcon class instance that was created in that thread. It's not going
to be pretty, but I think it is possible.

Hope this helps.

--
- Nicholas Paldino [.NET/C# MVP]
- (E-Mail Removed)


"melon" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hello,
>
> I have written a console application, but now I would like to add a
> notify icon in the system tray. What is the easiest way to do it? It
> would be painful if I have to convert it to a Windows App.
>
> Thanks.
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Remove Express Edition Tray icon from System Tray,... Kerem Gümrükcü Microsoft VC .NET 1 2nd Oct 2008 05:53 PM
adding internet explorer system tray icon =?Utf-8?B?a2FuZXByaW5jZXNz?= Windows Vista Performance 1 24th Jul 2007 02:46 PM
Adding an Icon to the TaskBar Tray Michael C Microsoft C# .NET 4 11th Oct 2004 03:32 PM
Adding an icon to system tray PRL Windows XP Customization 1 17th Jul 2004 12:47 PM
Adding icon to Tray Michael Microsoft Windows 2000 Developer 1 15th Jan 2004 02:58 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:57 AM.