Click here to Skip to main content
15,926,857 members
Home / Discussions / C#
   

C#

 
GeneralRe: PocketPc developing Pin
Heath Stewart13-Apr-04 10:50
protectorHeath Stewart13-Apr-04 10:50 
GeneralRe: PocketPc developing Pin
ghagleit13-Apr-04 18:52
ghagleit13-Apr-04 18:52 
GeneralDeveloping Custom Metadata Editor for ArcCatalog using C#.NET Pin
abhishk2001@yahoo.com13-Apr-04 10:13
abhishk2001@yahoo.com13-Apr-04 10:13 
GeneralRe: Developing Custom Metadata Editor for ArcCatalog using C#.NET Pin
Heath Stewart13-Apr-04 10:32
protectorHeath Stewart13-Apr-04 10:32 
GeneraloleDbDataAdapter /Connection Pin
DougW4813-Apr-04 9:58
DougW4813-Apr-04 9:58 
GeneralRe: oleDbDataAdapter /Connection Pin
Heath Stewart13-Apr-04 10:39
protectorHeath Stewart13-Apr-04 10:39 
GeneralRegion Bug - GetRegionScans Pin
dethsta13-Apr-04 8:54
dethsta13-Apr-04 8:54 
GeneralNT Service Pin
RickZ13-Apr-04 8:42
RickZ13-Apr-04 8:42 
There must be a way?

I've written many "NT Service" programs with VB6 and most have some sort of user interface. They all have an icon in the tray to indicate 'I'm running'.

Now comes C#. I've written the service and installed it, but I'm having one hard time trying to figure out how to have some UI involved. I've triggered threads in the onStart() that toggle between a non-visible form which holds a notifyicon and a UI. Clicking on the icon shows a form, closing the form reloads the icon in the tray, perfect. However, after logging off then logging back on the icon moved to bit heaven, I'm assuming because there was nothing left to hold it and I don't know how to reload the form from within its called method.

In VB6, its as simple as using a timer to keep attempting to put the icon in the tray. If there's an error nobodys logged in, no place to put the icon, so try again in a few seconds. When there's no error, someone must have logged in.

I don't know how to see if a user has logged on to re-start the method I don't know how to write!

There's got to be a way to simply have a "service process", owned and operated by the 'system' display its own icon from its own process when it knows its running and have it be there after a user logs back on. I stress owned by the "system" because due permissions available on the target machine, the polling of service manager with normal user rights can not be done. These boxes are really locked down, so the administrator has to install the program and the system has to run it.

Can anyone please help?
GeneralRe: NT Service Pin
Heath Stewart13-Apr-04 9:01
protectorHeath Stewart13-Apr-04 9:01 
GeneralPassing control Pin
Howard789013-Apr-04 7:59
Howard789013-Apr-04 7:59 
GeneralRe: Passing control Pin
Nick Parker13-Apr-04 8:18
protectorNick Parker13-Apr-04 8:18 
QuestionIs there an fast way to make a copy of ArrayList ? Pin
Andres Coder13-Apr-04 7:42
Andres Coder13-Apr-04 7:42 
AnswerRe: Is there an fast way to make a copy of ArrayList ? Pin
Judah Gabriel Himango13-Apr-04 7:51
sponsorJudah Gabriel Himango13-Apr-04 7:51 
GeneralRe: Is there an fast way to make a copy of ArrayList ? Pin
Andres Coder13-Apr-04 8:03
Andres Coder13-Apr-04 8:03 
GeneralRe: Is there an fast way to make a copy of ArrayList ? Pin
Heath Stewart13-Apr-04 8:33
protectorHeath Stewart13-Apr-04 8:33 
GeneralRe: Is there an fast way to make a copy of ArrayList ? Pin
Heath Stewart13-Apr-04 8:30
protectorHeath Stewart13-Apr-04 8:30 
GeneralRichTextBox and ITextHost Pin
Michael Wolski13-Apr-04 3:00
Michael Wolski13-Apr-04 3:00 
GeneralRe: RichTextBox and ITextHost Pin
Heath Stewart13-Apr-04 3:49
protectorHeath Stewart13-Apr-04 3:49 
GeneralHoly Crap! Pin
Michael Wolski13-Apr-04 4:17
Michael Wolski13-Apr-04 4:17 
GeneralRe: Holy Crap! Pin
Heath Stewart13-Apr-04 4:24
protectorHeath Stewart13-Apr-04 4:24 
GeneralRe: Holy Crap! Pin
Nick Parker13-Apr-04 8:14
protectorNick Parker13-Apr-04 8:14 
GeneralSucess! Pin
Michael Wolski14-Apr-04 4:47
Michael Wolski14-Apr-04 4:47 
GeneralRe: Sucess! Pin
Heath Stewart14-Apr-04 7:08
protectorHeath Stewart14-Apr-04 7:08 
Generalspeech recognition Pin
AlNair13-Apr-04 2:54
AlNair13-Apr-04 2:54 
GeneralRe: speech recognition Pin
Heath Stewart13-Apr-04 4:32
protectorHeath Stewart13-Apr-04 4:32 

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.