Click here to Skip to main content
15,897,518 members
Home / Discussions / C#
   

C#

 
QuestionHow to stop service from being stopped Pin
DUKEMAN16-May-06 11:22
DUKEMAN16-May-06 11:22 
AnswerRe: How to stop service from being stopped Pin
martin_hughes16-May-06 12:26
martin_hughes16-May-06 12:26 
AnswerRe: How to stop service from being stopped Pin
Albert Pascual16-May-06 12:55
sitebuilderAlbert Pascual16-May-06 12:55 
GeneralRe: How to stop service from being stopped Pin
DUKEMAN16-May-06 21:29
DUKEMAN16-May-06 21:29 
GeneralRe: How to stop service from being stopped Pin
thrakazog17-May-06 6:26
thrakazog17-May-06 6:26 
GeneralRe: How to stop service from being stopped Pin
Nader Elshehabi22-May-06 1:31
Nader Elshehabi22-May-06 1:31 
QuestionC# preprocessor variable for CLR version Pin
Rei Miyasaka16-May-06 11:09
Rei Miyasaka16-May-06 11:09 
AnswerRe: C# preprocessor variable for CLR version Pin
Nader Elshehabi16-May-06 11:57
Nader Elshehabi16-May-06 11:57 
Every .Netframework leaves a key in:
"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\policy"

For example if the machine has 2.0 Framework installed then there will be:
"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\policy\v2.0" key in the registry
try this code:
if (Registry.LocalMachine.OpenSubKey("SOFTWARE\\Microsoft\\.NETFramework\\policy\\v2.0") != null)
{
//Do something
}
but that will work fine with the if statement, not with the preprocessor directive #if.
GeneralRe: C# preprocessor variable for CLR version Pin
Rei Miyasaka16-May-06 12:01
Rei Miyasaka16-May-06 12:01 
GeneralRe: C# preprocessor variable for CLR version Pin
Nader Elshehabi16-May-06 12:12
Nader Elshehabi16-May-06 12:12 
GeneralRe: C# preprocessor variable for CLR version Pin
Rei Miyasaka16-May-06 12:19
Rei Miyasaka16-May-06 12:19 
AnswerRe: C# preprocessor variable for CLR version Pin
Rei Miyasaka16-May-06 12:38
Rei Miyasaka16-May-06 12:38 
QuestionFramework 2.0 rendering problem Pin
Phoen2516-May-06 11:04
Phoen2516-May-06 11:04 
AnswerRe: Framework 2.0 rendering problem Pin
Rei Miyasaka16-May-06 11:44
Rei Miyasaka16-May-06 11:44 
GeneralRe: Framework 2.0 rendering problem Pin
Phoen2518-May-06 11:22
Phoen2518-May-06 11:22 
GeneralRe: Framework 2.0 rendering problem Pin
Rei Miyasaka18-May-06 11:32
Rei Miyasaka18-May-06 11:32 
GeneralRe: Framework 2.0 rendering problem Pin
Phoen2518-May-06 11:53
Phoen2518-May-06 11:53 
GeneralRe: Framework 2.0 rendering problem Pin
Rei Miyasaka18-May-06 11:58
Rei Miyasaka18-May-06 11:58 
GeneralRe: Framework 2.0 rendering problem Pin
Phoen2518-May-06 12:37
Phoen2518-May-06 12:37 
GeneralRe: Framework 2.0 rendering problem Pin
Rei Miyasaka18-May-06 15:06
Rei Miyasaka18-May-06 15:06 
GeneralRe: Framework 2.0 rendering problem Pin
Phoen255-Jul-06 9:45
Phoen255-Jul-06 9:45 
GeneralRe: Framework 2.0 rendering problem Pin
Rei Miyasaka5-Jul-06 9:53
Rei Miyasaka5-Jul-06 9:53 
AnswerRe: Framework 2.0 rendering problem Pin
Nader Elshehabi16-May-06 11:52
Nader Elshehabi16-May-06 11:52 
QuestionListview 2.0 - SelectedIndexChanged Event Pin
Doncp16-May-06 10:40
Doncp16-May-06 10:40 
AnswerRe: Listview 2.0 - SelectedIndexChanged Event Pin
Rei Miyasaka16-May-06 11:38
Rei Miyasaka16-May-06 11:38 

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.