Click here to Skip to main content
16,004,854 members
Home / Discussions / C#
   

C#

 
GeneralRe: P2P Connection Manager and Connecting the Peers Pin
mkushner15-Nov-04 16:35
mkushner15-Nov-04 16:35 
GeneralRe: P2P Connection Manager and Connecting the Peers Pin
Dave Kreskowiak16-Nov-04 3:02
mveDave Kreskowiak16-Nov-04 3:02 
GeneralRe: P2P Connection Manager and Connecting the Peers Pin
mkushner16-Nov-04 6:19
mkushner16-Nov-04 6:19 
GeneralVS.Net add-in Pin
Anonymous15-Nov-04 10:39
Anonymous15-Nov-04 10:39 
GeneralOnline Database Pin
The underdog15-Nov-04 9:54
The underdog15-Nov-04 9:54 
GeneralRe: Online Database Pin
Utku KAYA15-Nov-04 11:22
Utku KAYA15-Nov-04 11:22 
GeneralRe: Online Database Pin
Utku KAYA15-Nov-04 11:33
Utku KAYA15-Nov-04 11:33 
GeneralRe: .Net Service & Notifyicon disappearing after log-off/log-on Pin
Heath Stewart15-Nov-04 9:16
protectorHeath Stewart15-Nov-04 9:16 
Yes, I understand that (that's exactly what I said) and the point I was trying to make is that if you instantiate the NotifyIcon in the startup code for your service (which appears evident) then it'll only display the first time. When the window is destroyed (invariably when you log off) it doesn't get recreated because your service's startup code has already executed. Your evidence supports this assumption.

As I said, you should create a separate application to control the service. This Windows Forms application (hidden main form; just need to display the NotifyIcon) runs when a Windows session is create to communicate and display status for the service. This is the correct and typical approach.

Otherwise, you'll need to P/Invoke several APIs to receive notification when a user logs in and re-create your NotifyIcon.

This posting is provided "AS IS" with no warranties, and confers no rights.

Software Design Engineer
Developer Division Sustained Engineering
Microsoft

[My Articles] [My Blog]
Generalzip compression Pin
ppp00115-Nov-04 8:22
ppp00115-Nov-04 8:22 
GeneralRe: zip compression Pin
Christian Graus15-Nov-04 9:37
protectorChristian Graus15-Nov-04 9:37 
GeneralRe: zip compression Pin
Anonymous15-Nov-04 12:32
Anonymous15-Nov-04 12:32 
GeneralRe: zip compression Pin
leppie15-Nov-04 22:14
leppie15-Nov-04 22:14 
Generalputting icons in subitems of listview Pin
BlackDice15-Nov-04 7:59
BlackDice15-Nov-04 7:59 
GeneralRe: putting icons in subitems of listview Pin
Heath Stewart15-Nov-04 8:06
protectorHeath Stewart15-Nov-04 8:06 
GeneralGridItem in PropertyGrid Pin
Irie_Pansen15-Nov-04 6:24
Irie_Pansen15-Nov-04 6:24 
GeneralRe: GridItem in PropertyGrid Pin
Heath Stewart15-Nov-04 6:37
protectorHeath Stewart15-Nov-04 6:37 
GeneralAPI Call to GetProfileString Does Not Fill Buffer Pin
stoked15-Nov-04 6:13
stoked15-Nov-04 6:13 
GeneralRe: API Call to GetProfileString Does Not Fill Buffer Pin
Heath Stewart15-Nov-04 6:31
protectorHeath Stewart15-Nov-04 6:31 
GeneralRe: API Call to GetProfileString Does Not Fill Buffer Pin
stoked15-Nov-04 7:51
stoked15-Nov-04 7:51 
GeneralRe: API Call to GetProfileString Does Not Fill Buffer Pin
Heath Stewart15-Nov-04 8:02
protectorHeath Stewart15-Nov-04 8:02 
GeneralRe: API Call to GetProfileString Does Not Fill Buffer Pin
stoked15-Nov-04 8:24
stoked15-Nov-04 8:24 
GeneralRe: API Call to GetProfileString Does Not Fill Buffer Pin
Heath Stewart15-Nov-04 9:09
protectorHeath Stewart15-Nov-04 9:09 
GeneralRe: API Call to GetProfileString Does Not Fill Buffer Pin
stoked15-Nov-04 10:51
stoked15-Nov-04 10:51 
GeneralRe: API Call to GetProfileString Does Not Fill Buffer Pin
stoked15-Nov-04 8:03
stoked15-Nov-04 8:03 
General.Net Service & Notifyicon disappearing after log-off/log-on Pin
Steef (Stephan Deckers)15-Nov-04 6:07
Steef (Stephan Deckers)15-Nov-04 6:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.