Click here to Skip to main content
15,888,579 members
Home / Discussions / C#
   

C#

 
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 
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 
I'm trying to use System.Drawing.BufferedGraphics, which is only available on .NET 2.0. I could use System.Drawing.Bitmap instead, but it's slightly less performant.

Also, some of the form mouse events are slightly different between the two versions.

I want to avoid having two copies of the code if I can, so I want to use the preprocessor to distinguish between the two.

There's one variable, VC_V7 that's used in an example in the C# documentation on MSDN, but that's only for Visual Studio (I think... I'm not sure why it'd be VC_V7).

Thanks for helping Smile | :)
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 
Questionbringing the form on top Pin
Rizwan Rathore16-May-06 10:37
Rizwan Rathore16-May-06 10:37 
AnswerRe: bringing the form on top Pin
Rei Miyasaka16-May-06 11:03
Rei Miyasaka16-May-06 11:03 
GeneralRe: bringing the form on top Pin
Rizwan Rathore16-May-06 11:27
Rizwan Rathore16-May-06 11:27 

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.