Click here to Skip to main content
15,887,746 members
Home / Discussions / C#
   

C#

 
GeneralRe: Text Splitting Pin
iNutR4-Aug-09 22:08
iNutR4-Aug-09 22:08 
GeneralRe: Text Splitting Pin
Mycroft Holmes4-Aug-09 22:22
professionalMycroft Holmes4-Aug-09 22:22 
Questionwho has digital color management code in c#? Pin
sudan1234-Aug-09 21:39
sudan1234-Aug-09 21:39 
AnswerRe: who has digital color management code in c#? Pin
Christian Graus4-Aug-09 22:15
protectorChristian Graus4-Aug-09 22:15 
QuestionControl-Break in C# console application Pin
mSh19854-Aug-09 21:12
mSh19854-Aug-09 21:12 
Questionfileupload controll of asp Pin
RajaAhmed4-Aug-09 20:58
RajaAhmed4-Aug-09 20:58 
AnswerRe: fileupload controll of asp Pin
stancrm4-Aug-09 21:13
stancrm4-Aug-09 21:13 
Questionservice startupType Pin
arkiboys4-Aug-09 20:17
arkiboys4-Aug-09 20:17 
Hi,
The code below looks for a particular service i.e "Index service" and then checks for the status i.e. stopped, start...
How do I modify this code so that I can check for the startupType of the service i.e. disabled, automatic, manual?
Thanks

ServiceController[] installedServices;

installedServices = ServiceController.GetServices(strServer);

                        foreach (ServiceController tmpService in installedServices)
                        {
                              //proceed only if the service is installed...
                              if (myService.DisplayName.ToLower().Trim() == "Installed Service")
                              {
                                    //get the status of the service...
                                    strServiceStatus = myService.Status.ToString();

                                    ServiceInstaller serviceInstaller = new ServiceInstaller();
                                    serviceInstaller.ServiceName = strService.ToLower().Trim();
                                    strStartupType = serviceInstaller.StartType.ToString();

                              }
                        }
AnswerRe: service startupType Pin
stancrm4-Aug-09 20:40
stancrm4-Aug-09 20:40 
GeneralRe: service startupType Pin
arkiboys4-Aug-09 21:26
arkiboys4-Aug-09 21:26 
QuestionLoading 2048K values to textbox from stringbuilder object... Pin
spalanivel4-Aug-09 20:00
spalanivel4-Aug-09 20:00 
AnswerRe: Loading 2048K values to textbox from stringbuilder object... Pin
stancrm4-Aug-09 20:26
stancrm4-Aug-09 20:26 
GeneralRe: Loading 2048K values to textbox from stringbuilder object... Pin
spalanivel4-Aug-09 20:40
spalanivel4-Aug-09 20:40 
AnswerRe: Loading 2048K values to textbox from stringbuilder object... Pin
spalanivel4-Aug-09 20:34
spalanivel4-Aug-09 20:34 
GeneralRe: Loading 2048K values to textbox from stringbuilder object... Pin
stancrm4-Aug-09 20:35
stancrm4-Aug-09 20:35 
AnswerRe: Loading 2048K values to textbox from stringbuilder object... Pin
stancrm4-Aug-09 20:37
stancrm4-Aug-09 20:37 
GeneralRe: Loading 2048K values to textbox from stringbuilder object... Pin
spalanivel4-Aug-09 22:35
spalanivel4-Aug-09 22:35 
GeneralRe: Loading 2048K values to textbox from stringbuilder object... Pin
stancrm4-Aug-09 22:54
stancrm4-Aug-09 22:54 
QuestionSQL 2005 connection failed Pin
picasso24-Aug-09 19:51
picasso24-Aug-09 19:51 
AnswerRe: SQL 2005 connection failed Pin
ammar_shaker4-Aug-09 20:53
ammar_shaker4-Aug-09 20:53 
QuestionLicensing for windows application Pin
nilam24774-Aug-09 19:31
nilam24774-Aug-09 19:31 
AnswerRe: Licensing for windows application Pin
Christian Graus4-Aug-09 19:34
protectorChristian Graus4-Aug-09 19:34 
GeneralRe: Licensing for windows application Pin
OriginalGriff4-Aug-09 21:18
mveOriginalGriff4-Aug-09 21:18 
AnswerRe: Licensing for windows application Pin
Cracked-Down4-Aug-09 22:55
Cracked-Down4-Aug-09 22:55 
QuestionPattern matching for Relational Operators [modified] Pin
gamer11274-Aug-09 17:59
gamer11274-Aug-09 17:59 

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.