Click here to Skip to main content
15,880,905 members
Home / Discussions / C#
   

C#

 
AnswerRe: Throwing events in unmanaged code Pin
Luc Pattyn5-Sep-07 11:48
sitebuilderLuc Pattyn5-Sep-07 11:48 
QuestionQuery Regarding SetPublicKeyToken Pin
Amar Chaudhary5-Sep-07 8:54
Amar Chaudhary5-Sep-07 8:54 
AnswerRe: Query Regarding SetPublicKeyToken Pin
TJoe5-Sep-07 9:08
TJoe5-Sep-07 9:08 
JokeRe: Query Regarding SetPublicKeyToken Pin
Amar Chaudhary5-Sep-07 9:11
Amar Chaudhary5-Sep-07 9:11 
QuestionRe: Query Regarding SetPublicKeyToken Pin
Amar Chaudhary5-Sep-07 9:13
Amar Chaudhary5-Sep-07 9:13 
AnswerRe: Query Regarding SetPublicKeyToken Pin
Dave Kreskowiak5-Sep-07 9:17
mveDave Kreskowiak5-Sep-07 9:17 
GeneralRe: Query Regarding SetPublicKeyToken Pin
Amar Chaudhary5-Sep-07 9:54
Amar Chaudhary5-Sep-07 9:54 
AnswerRe: Query Regarding SetPublicKeyToken Pin
TJoe5-Sep-07 9:21
TJoe5-Sep-07 9:21 
I'm assuming you want the types from a given assembly that derive from System.Windows.Forms.Control. If so, then once you have the assembly loaded you can run the following code:

foreach (Type type in assembly.GetTypes()) {
    if (type.IsSubclassOf(typeof(Control))) {
        // This is a control
    }
}



Take care,
Tom

-----------------------------------------------
Check out my blog at http://tjoe.wordpress.com

JokeRe: Query Regarding SetPublicKeyToken Pin
Amar Chaudhary5-Sep-07 9:39
Amar Chaudhary5-Sep-07 9:39 
GeneralRe: Query Regarding SetPublicKeyToken Pin
TJoe5-Sep-07 9:50
TJoe5-Sep-07 9:50 
GeneralRe: Query Regarding SetPublicKeyToken Pin
Amar Chaudhary5-Sep-07 9:58
Amar Chaudhary5-Sep-07 9:58 
Questioncan u help me with a if question? Pin
andredani5-Sep-07 8:39
andredani5-Sep-07 8:39 
AnswerRe: can u help me with a if question? Pin
Larantz5-Sep-07 8:44
Larantz5-Sep-07 8:44 
AnswerRe: can u help me with a if question? Pin
TJoe5-Sep-07 8:46
TJoe5-Sep-07 8:46 
GeneralRe: can u help me with a if question? Pin
andredani6-Sep-07 0:32
andredani6-Sep-07 0:32 
GeneralRe: can u help me with a if question? Pin
TJoe6-Sep-07 1:58
TJoe6-Sep-07 1:58 
GeneralRe: can u help me with a if question? Pin
andredani6-Sep-07 3:08
andredani6-Sep-07 3:08 
GeneralRe: can u help me with a if question? Pin
TJoe6-Sep-07 3:15
TJoe6-Sep-07 3:15 
GeneralRe: can u help me with a if question? [modified] Pin
andredani6-Sep-07 3:34
andredani6-Sep-07 3:34 
GeneralRe: can u help me with a if question? Pin
TJoe6-Sep-07 3:40
TJoe6-Sep-07 3:40 
GeneralRe: can u help me with a if question? Pin
andredani6-Sep-07 4:02
andredani6-Sep-07 4:02 
GeneralRe: can u help me with a if question? Pin
TJoe6-Sep-07 5:29
TJoe6-Sep-07 5:29 
GeneralRe: can u help me with a if question? Pin
andredani6-Sep-07 11:25
andredani6-Sep-07 11:25 
GeneralRe: can u help me with a if question? Pin
TJoe7-Sep-07 2:15
TJoe7-Sep-07 2:15 
GeneralRe: can u help me with a if question? Pin
andredani7-Sep-07 2:54
andredani7-Sep-07 2:54 

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.