Click here to Skip to main content
15,907,687 members
Home / Discussions / C#
   

C#

 
GeneralRe: Having trouble calling legacy 'c' dll Pin
LouMattera7-May-08 5:26
LouMattera7-May-08 5:26 
QuestionHow to get a datarow from a datable in C#? Pin
salon7-May-08 3:41
salon7-May-08 3:41 
AnswerRe: How to get a datarow from a datable in C#? Pin
Giorgi Dalakishvili7-May-08 4:08
mentorGiorgi Dalakishvili7-May-08 4:08 
AnswerRe: How to get a datarow from a datable in C#? Pin
LongRange.Shooter7-May-08 4:23
LongRange.Shooter7-May-08 4:23 
GeneralRe: How to get a datarow from a datable in C#? Pin
salon7-May-08 19:54
salon7-May-08 19:54 
Questionobject from/to XML Pin
George_George7-May-08 3:01
George_George7-May-08 3:01 
AnswerRe: object from/to XML Pin
J4amieC7-May-08 3:07
J4amieC7-May-08 3:07 
GeneralRe: object from/to XML Pin
George_George7-May-08 3:45
George_George7-May-08 3:45 
QuestionActive Directory Account Information [modified] Pin
Tim Carmichael7-May-08 2:06
Tim Carmichael7-May-08 2:06 
AnswerRe: Active Directory Account Information Pin
Abhijit Jana7-May-08 3:36
professionalAbhijit Jana7-May-08 3:36 
QuestionHow to generate automated code when implementing an interface in a class? (C#) Pin
Uttam Kumar Unik!7-May-08 2:05
Uttam Kumar Unik!7-May-08 2:05 
AnswerRe: How to generate automated code when implementing an interface in a class? (C#) Pin
Christopher Stratmann7-May-08 2:13
Christopher Stratmann7-May-08 2:13 
GeneralRe: How to generate automated code when implementing an interface in a class? (C#) Pin
Uttam Kumar Unik!7-May-08 2:31
Uttam Kumar Unik!7-May-08 2:31 
GeneralRe: How to generate automated code when implementing an interface in a class? (C#) Pin
Christopher Stratmann7-May-08 2:33
Christopher Stratmann7-May-08 2:33 
GeneralRe: How to generate automated code when implementing an interface in a class? (C#) Pin
Uttam Kumar Unik!7-May-08 2:37
Uttam Kumar Unik!7-May-08 2:37 
AnswerRe: How to generate automated code when implementing an interface in a class? (C#) Pin
Anindya Chatterjee7-May-08 2:14
Anindya Chatterjee7-May-08 2:14 
AnswerRe: How to generate automated code when implementing an interface in a class? (C#) Pin
S. Senthil Kumar7-May-08 4:09
S. Senthil Kumar7-May-08 4:09 
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

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.