Click here to Skip to main content
15,889,808 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to generate automated code when implementing an interface in a class? (C#) Pin
Uttam Kumar Unik!7-May-08 4:12
Uttam Kumar Unik!7-May-08 4:12 
GeneralRe: How to generate automated code when implementing an interface in a class? (C#) Pin
S. Senthil Kumar7-May-08 4:13
S. Senthil Kumar7-May-08 4:13 
GeneralRe: How to generate automated code when implementing an interface in a class? (C#) Pin
Uttam Kumar Unik!7-May-08 4:23
Uttam Kumar Unik!7-May-08 4:23 
News[Message Deleted] Pin
Anindya Chatterjee7-May-08 1:50
Anindya Chatterjee7-May-08 1:50 
GeneralRe: Free Web Host & Free Domain Name Forever Pin
phannon867-May-08 2:48
professionalphannon867-May-08 2:48 
GeneralRe: Free Web Host & Free Domain Name Forever Pin
Anindya Chatterjee7-May-08 2:54
Anindya Chatterjee7-May-08 2:54 
GeneralCP Members: SPAM Pin
leckey7-May-08 2:54
leckey7-May-08 2:54 
QuestionProgramatically removing a reference??? Pin
Christopher Stratmann7-May-08 1:42
Christopher Stratmann7-May-08 1:42 
I have some custom controls which contains a System.Windows.Forms.Label control. I would like to be able to swap out those label controls with a third party label control. What I would like to do is the following...

#if UsingThirdPartyControls
namespace WindowsApplication4 {
	public class MyCustomLabel : ThirdPartyLabel {
	}
}
#else
namespace WindowsApplication4 {
	public class MyCustomLabel : Label {
	}
}
#endif


Now I can use MyCustomLabel in my custom controls and based on the type of build (one build will have UsingThirdPartyControls defined and another will not).

The problem is removing the reference to the third party controls. Is there a way I can programatically tell the C# compiler to remove the references to the third party assemblies. That way when I deploy my custom control the third party assemblies are not deployed because they are not required?

Chris
AnswerRe: Programatically removing a reference??? Pin
vytheese7-May-08 2:28
professionalvytheese7-May-08 2:28 
GeneralRe: Programatically removing a reference??? Pin
Christopher Stratmann7-May-08 2:42
Christopher Stratmann7-May-08 2:42 
QuestionCasting Issues Pin
Squeaker7-May-08 1:06
Squeaker7-May-08 1:06 
AnswerRe: Casting Issues Pin
#realJSOP7-May-08 1:28
mve#realJSOP7-May-08 1:28 
AnswerRe: Casting Issues Pin
LongRange.Shooter7-May-08 4:31
LongRange.Shooter7-May-08 4:31 
QuestionTypecasting string to char * in C# Pin
Vikas K.7-May-08 0:34
Vikas K.7-May-08 0:34 
AnswerRe: Typecasting string to char * in C# Pin
stancrm7-May-08 0:53
stancrm7-May-08 0:53 
GeneralRe: Typecasting string to char * in C# Pin
Vikas K.8-May-08 0:26
Vikas K.8-May-08 0:26 
GeneralRe: Typecasting string to char * in C# Pin
stancrm8-May-08 0:34
stancrm8-May-08 0:34 
GeneralRe: Typecasting string to char * in C# Pin
Vikas K.9-May-08 2:31
Vikas K.9-May-08 2:31 
AnswerRe: Typecasting string to char * in C# Pin
J a a n s7-May-08 2:44
professionalJ a a n s7-May-08 2:44 
QuestionHow to find Sql DataSources by WMI ? Pin
hdv2127-May-08 0:25
hdv2127-May-08 0:25 
QuestionUpdate Resource(.resx) file Pin
Krishnraj7-May-08 0:14
Krishnraj7-May-08 0:14 
AnswerRe: Update Resource(.resx) file Pin
LongRange.Shooter7-May-08 4:34
LongRange.Shooter7-May-08 4:34 
GeneralRe: Update Resource(.resx) file Pin
Krishnraj7-May-08 20:37
Krishnraj7-May-08 20:37 
GeneralRe: Update Resource(.resx) file Pin
LongRange.Shooter8-May-08 3:22
LongRange.Shooter8-May-08 3:22 
GeneralRe: Update Resource(.resx) file Pin
LongRange.Shooter8-May-08 4:45
LongRange.Shooter8-May-08 4:45 

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.