Click here to Skip to main content
16,015,976 members
Home / Discussions / C#
   

C#

 
QuestionTask Bar Help Pin
Saiyed Alam26-May-08 23:02
Saiyed Alam26-May-08 23:02 
AnswerRe: Task Bar Help Pin
leppie26-May-08 23:35
leppie26-May-08 23:35 
QuestionDatagridView and relations Pin
anjase26-May-08 22:37
anjase26-May-08 22:37 
QuestionWindows Service Dosen't Show ! Pin
ptr2void26-May-08 22:21
ptr2void26-May-08 22:21 
AnswerRe: Windows Service Dosen't Show ! Pin
dan!sh 26-May-08 22:30
professional dan!sh 26-May-08 22:30 
GeneralRe: Windows Service Dosen't Show ! Pin
ptr2void26-May-08 23:41
ptr2void26-May-08 23:41 
AnswerRe: Windows Service Dosen't Show ! Pin
leppie26-May-08 22:40
leppie26-May-08 22:40 
GeneralRe: Windows Service Dosen't Show ! [modified] Pin
ptr2void26-May-08 23:46
ptr2void26-May-08 23:46 
leppie wrote:
But really, try to think about it. You start as a service, this happens before login, so where exactly is your UI suppose to go? See, it doesnt make sense. Rather start the app from start up.

All that said, here is probably the better idea:
1. Create a service.
2. Create a Windows Forms application, and add to start up folder or registry.
3. Use remoting to so the Winforms app can communicate with the service if necessary. BTW, you say you just wanna stop a service, so remoting will not even be needed (but somehow it seems you want to stop the service from within the service, not sure how that will work).


Thanks for the alternate choices.

But my service calls a console application and in this I perform background operations, like collecting system information.

I dont need that user must have UI at startup.
The service will start and call the console app. I have created a tray icon for the console app and whenever the user wants to shut down the console app, he right clicks the tray icon and stops it. The service dosent stop as such.
This is because the service launches the console app after some regular intervals of time to collect information data again.

Now you must have understood why I cant put it (the console app) in startup folder. That is because the app needs to collect information periodically which can only be scheduled by the service.

And if the service dosent interact with the desktop then the tray icon wont be visible.

Now have you got any suggestions?
Any help would be gratly appreciated.
Thanks !

modified on Tuesday, May 27, 2008 5:53 AM

GeneralRe: Windows Service Dosen't Show ! Pin
leppie27-May-08 0:23
leppie27-May-08 0:23 
Question[Message Deleted] Pin
Bobbz26-May-08 22:00
Bobbz26-May-08 22:00 
AnswerSame question in four forums Pin
dan!sh 26-May-08 22:20
professional dan!sh 26-May-08 22:20 
QuestionHelp wanted Pin
Saiyed Alam26-May-08 20:52
Saiyed Alam26-May-08 20:52 
AnswerRe: Help wanted Pin
D i x y26-May-08 21:35
D i x y26-May-08 21:35 
GeneralRe: Help wanted Pin
Saiyed Alam26-May-08 23:03
Saiyed Alam26-May-08 23:03 
QuestionGetting key from the value Pin
N a v a n e e t h26-May-08 20:38
N a v a n e e t h26-May-08 20:38 
AnswerRe: Getting key from the value Pin
S. Senthil Kumar26-May-08 20:51
S. Senthil Kumar26-May-08 20:51 
GeneralRe: Getting key from the value Pin
N a v a n e e t h26-May-08 20:59
N a v a n e e t h26-May-08 20:59 
GeneralRe: Getting key from the value Pin
N a v a n e e t h26-May-08 21:06
N a v a n e e t h26-May-08 21:06 
AnswerRe: Getting key from the value Pin
dan!sh 26-May-08 20:55
professional dan!sh 26-May-08 20:55 
GeneralRe: Getting key from the value Pin
N a v a n e e t h26-May-08 21:01
N a v a n e e t h26-May-08 21:01 
GeneralRe: Getting key from the value Pin
dan!sh 26-May-08 21:14
professional dan!sh 26-May-08 21:14 
GeneralRe: Getting key from the value Pin
dan!sh 26-May-08 21:21
professional dan!sh 26-May-08 21:21 
GeneralRe: Getting key from the value Pin
N a v a n e e t h26-May-08 21:56
N a v a n e e t h26-May-08 21:56 
AnswerRe: Getting key from the value Pin
Guffa26-May-08 21:53
Guffa26-May-08 21:53 
GeneralRe: Getting key from the value Pin
N a v a n e e t h26-May-08 21:58
N a v a n e e t h26-May-08 21:58 

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.