Click here to Skip to main content
15,905,028 members
Home / Discussions / C#
   

C#

 
GeneralRe: Searching for opponents, what do I need? Pin
Dave Kreskowiak23-Jul-04 10:40
mveDave Kreskowiak23-Jul-04 10:40 
GeneralReceiving NoNullAllowedException setting SelectedValue from code. Pin
Brett Slaski22-Jul-04 12:01
Brett Slaski22-Jul-04 12:01 
GeneralRe: Receiving NoNullAllowedException setting SelectedValue from code. Pin
Heath Stewart22-Jul-04 12:11
protectorHeath Stewart22-Jul-04 12:11 
GeneralRe: Receiving NoNullAllowedException setting SelectedValue from code. Pin
Brett Slaski23-Jul-04 9:30
Brett Slaski23-Jul-04 9:30 
GeneralRe: Receiving NoNullAllowedException setting SelectedValue from code. Pin
Heath Stewart23-Jul-04 10:00
protectorHeath Stewart23-Jul-04 10:00 
Generalnon-static class referencing Pin
Wolfman3222-Jul-04 12:00
Wolfman3222-Jul-04 12:00 
GeneralRe: non-static class referencing Pin
Heath Stewart22-Jul-04 12:29
protectorHeath Stewart22-Jul-04 12:29 
Generalthe process and services... Pin
Wail A.Salem22-Jul-04 11:58
Wail A.Salem22-Jul-04 11:58 
Hi every body
i want to ask:
how we can prevent the user from ending the process from the task manager?

the a second question is how we can make the service interactive with the desktop
i know that there is ServiceType calss but when i try to use it the service dos'nt interact with the desktop and here is the segment of the code which i wrote
..........
...........
private void InitializeComponent()
{
this.serviceProcessInstaller1 = new System.ServiceProcess.ServiceProcessInstaller();
this.serviceInstaller1 = new System.ServiceProcess.ServiceInstaller();
//
// serviceProcessInstaller1
//

this.serviceProcessInstaller1.Account = System.ServiceProcess.ServiceAccount.LocalService;
this.serviceProcessInstaller1.Password = null;
this.serviceProcessInstaller1.Username = null;

//
// serviceInstaller1
//


this.st=System.ServiceProcess.ServiceType.InteractiveProcess;
this.serviceInstaller1.ServiceName = "Service2";
this.serviceInstaller1.StartType = System.ServiceProcess.ServiceStartMode.Automatic;
//
// ProjectInstaller
//
this.Installers.AddRange(new System.Configuration.Install.Installer[] {
this.serviceProcessInstaller1,
this.serviceInstaller1,this.st });
..............
..............

note i install the service by setup project
with regards






GeneralRe: the process and services... Pin
Heath Stewart22-Jul-04 12:39
protectorHeath Stewart22-Jul-04 12:39 
QuestionGetTextExtent? Pin
Matt Gerrans22-Jul-04 10:01
Matt Gerrans22-Jul-04 10:01 
AnswerRe: GetTextExtent? Pin
Gary Thom22-Jul-04 10:06
Gary Thom22-Jul-04 10:06 
GeneralRe: GetTextExtent? Pin
Matt Gerrans22-Jul-04 19:25
Matt Gerrans22-Jul-04 19:25 
GeneralRun external program and wait Pin
Boaz V22-Jul-04 9:06
Boaz V22-Jul-04 9:06 
GeneralRe: Run external program and wait Pin
Heath Stewart22-Jul-04 9:25
protectorHeath Stewart22-Jul-04 9:25 
GeneralAtt: Heath Stewart - Browser Helper Objects Pin
Stuggo22-Jul-04 8:46
Stuggo22-Jul-04 8:46 
GeneralRe: Att: Heath Stewart - Browser Helper Objects Pin
Heath Stewart22-Jul-04 9:08
protectorHeath Stewart22-Jul-04 9:08 
GeneralCOM Ports Pin
eggie522-Jul-04 7:09
eggie522-Jul-04 7:09 
GeneralRe: COM Ports Pin
eggie522-Jul-04 7:42
eggie522-Jul-04 7:42 
GeneralRe: COM Ports Pin
Jae Sammy22-Jul-04 7:51
Jae Sammy22-Jul-04 7:51 
GeneralRe: COM Ports Pin
eggie522-Jul-04 8:01
eggie522-Jul-04 8:01 
GeneralRe: COM Ports Pin
Jae Sammy23-Jul-04 4:17
Jae Sammy23-Jul-04 4:17 
GeneralListView ColumnHeader class Pin
Andy H22-Jul-04 6:12
Andy H22-Jul-04 6:12 
GeneralRe: ListView ColumnHeader class Pin
Heath Stewart22-Jul-04 9:31
protectorHeath Stewart22-Jul-04 9:31 
GeneralPDF ActiveX Control Pin
Mr. Rogers22-Jul-04 6:12
Mr. Rogers22-Jul-04 6:12 
GeneralHelp: SQL Update Pin
j1e1g122-Jul-04 5:28
j1e1g122-Jul-04 5:28 

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.