Click here to Skip to main content
15,917,005 members
Home / Discussions / C#
   

C#

 
GeneralSelectedItems Collection foreach loop Pin
eggie54-Sep-04 18:57
eggie54-Sep-04 18:57 
GeneralRe: SelectedItems Collection foreach loop Pin
EssOEss4-Sep-04 20:19
EssOEss4-Sep-04 20:19 
GeneralRe: SelectedItems Collection foreach loop Pin
eggie54-Sep-04 20:25
eggie54-Sep-04 20:25 
GeneralRe: SelectedItems Collection foreach loop Pin
Robert Rohde4-Sep-04 20:24
Robert Rohde4-Sep-04 20:24 
Generalaccess frame contents in WebBrowser Pin
Asif Rehman4-Sep-04 16:51
Asif Rehman4-Sep-04 16:51 
GeneralService interact with Windows MFC Pin
brunoconde4-Sep-04 12:11
brunoconde4-Sep-04 12:11 
GeneralRe: Service interact with Windows MFC Pin
EssOEss4-Sep-04 20:25
EssOEss4-Sep-04 20:25 
GeneralRe: Service interact with Windows MFC Pin
Sebastian Schneider5-Sep-04 23:34
Sebastian Schneider5-Sep-04 23:34 
Well, this depends on several conditions:

Do you want your users to ALWAYS see pop-ups and information windows? Because that is not what a service should do.

A service should run in the background unattended.

IF you want your users to continously interact with your program, make it a windows-forms application. You can still "autostart" it via a registry entry.


Do you simply need some feedback for debugging purposes and want non-critical errors to be described somewhere? Then use this.EventLog.WriteEntry.

That will allow you to write some output to Windows' application event log.


If you want an local user or administrator to be able to change the settings of your service, you could use an ini-File which holds configuration information, so someone could simply edit the file to change settings (or store those settings in the registry).


If you need remote-configuration capabilities, have an asynchronous tcp socket waiting for connections on a certain port and use net.security or a simple user/password combination to restrict access.

Then send commands and have your service react accordingly. You could even write a Windows-Forms App to communicate with your service.


I chose the latter (ini-file and remote config) for my Windows Service.

Cheers
Sebastian
Generaluse dll from dymo Pin
VisualRonny4-Sep-04 9:25
VisualRonny4-Sep-04 9:25 
GeneralDebugging Pin
dbetting4-Sep-04 4:16
dbetting4-Sep-04 4:16 
GeneralAdditional Info Pin
dbetting4-Sep-04 5:08
dbetting4-Sep-04 5:08 
GeneralAdvise on displaying HTML document Pin
Adelm4-Sep-04 2:56
Adelm4-Sep-04 2:56 
GeneralRe: Advise on displaying HTML document Pin
Tomas Petricek4-Sep-04 3:13
Tomas Petricek4-Sep-04 3:13 
GeneralRe: Advise on displaying HTML document Pin
Mr. Rogers4-Sep-04 12:11
Mr. Rogers4-Sep-04 12:11 
GeneralRe: Advise on displaying HTML document Pin
Tomas Petricek4-Sep-04 12:20
Tomas Petricek4-Sep-04 12:20 
GeneralRe: Advise on displaying HTML document Pin
Adelm5-Sep-04 4:37
Adelm5-Sep-04 4:37 
GeneralCrystal reports Problem HElpppp Me Pin
kings_14-Sep-04 0:52
kings_14-Sep-04 0:52 
GeneralRe: Crystal reports Problem HElpppp Me Pin
cjengler5-Sep-04 1:24
cjengler5-Sep-04 1:24 
Generalx86 Op codes and C# Pin
WayneMJ4-Sep-04 0:18
WayneMJ4-Sep-04 0:18 
GeneralRe: x86 Op codes and C# Pin
leppie4-Sep-04 1:24
leppie4-Sep-04 1:24 
GeneralRe: x86 Op codes and C# Pin
WayneMJ4-Sep-04 1:33
WayneMJ4-Sep-04 1:33 
GeneralNode names in TreeView Pin
teomanx4-Sep-04 0:01
teomanx4-Sep-04 0:01 
GeneralDesignMode always false Pin
Hesham Amin3-Sep-04 21:43
Hesham Amin3-Sep-04 21:43 
GeneralC# Script Debug Pin
For_IT3-Sep-04 20:53
For_IT3-Sep-04 20:53 
GeneralRe: C# Script Debug Pin
EssOEss4-Sep-04 20:30
EssOEss4-Sep-04 20:30 

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.