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

C#

 
QuestionParametized queries in C#-Hard one. Pin
falles012-Sep-07 14:56
falles012-Sep-07 14:56 
AnswerRe: Parametized queries in C#-Hard one. Pin
Christian Graus2-Sep-07 15:12
protectorChristian Graus2-Sep-07 15:12 
AnswerRe: Parametized queries in C#-Hard one. Pin
Guffa2-Sep-07 19:15
Guffa2-Sep-07 19:15 
GeneralRe: Parametized queries in C#-Hard one. Pin
falles012-Sep-07 21:12
falles012-Sep-07 21:12 
AnswerRe: Parametized queries in C#-Hard one. Pin
Guffa2-Sep-07 21:47
Guffa2-Sep-07 21:47 
GeneralRe: Parametized queries in C#-Hard one. Pin
falles012-Sep-07 21:56
falles012-Sep-07 21:56 
Questioniterate through properties [modified] Pin
ushering2-Sep-07 12:27
ushering2-Sep-07 12:27 
AnswerRe: iterate through properties Pin
Colin Angus Mackay2-Sep-07 12:56
Colin Angus Mackay2-Sep-07 12:56 
ushering wrote:
I am generating lists of all controls on a target form, but would also like to list all properties for each.


Use reflection. See the documentation for the System.Reflection namespace

Off the top of my head something like this will get you all the properties on a class (not just controls, any class)
Type controlType = myControl.GetType();
PropertyInfo[] properties = controlType.GetProperties();


DISCLAIMER: This is as I remember it, I haven't checked that the real methods are exactly as stated.


Upcoming FREE developer events:
* Glasgow: Agile in the Enterprise Vs. ISVs, db4o: An Embeddable Database Engine for Object-Oriented Environments, Mock Objects, SQL Server CLR Integration, Reporting Services ...

My website

Questiondelete Pin
Assaf822-Sep-07 10:40
Assaf822-Sep-07 10:40 
AnswerRe: delete Pin
Paul Conrad2-Sep-07 11:01
professionalPaul Conrad2-Sep-07 11:01 
AnswerRe: delete Pin
Christian Graus2-Sep-07 11:06
protectorChristian Graus2-Sep-07 11:06 
GeneralRe: delete Pin
Assaf822-Sep-07 11:32
Assaf822-Sep-07 11:32 
GeneralRe: delete Pin
Christian Graus2-Sep-07 11:38
protectorChristian Graus2-Sep-07 11:38 
QuestionTessellations Pin
spelltwister2-Sep-07 10:34
spelltwister2-Sep-07 10:34 
AnswerRe: Tessellations Pin
Mark Churchill2-Sep-07 19:00
Mark Churchill2-Sep-07 19:00 
GeneralRe: Tessellations Pin
spelltwister2-Sep-07 19:50
spelltwister2-Sep-07 19:50 
GeneralRe: Tessellations Pin
Mark Churchill2-Sep-07 21:12
Mark Churchill2-Sep-07 21:12 
Questionaccess violation Pin
Opa Knack2-Sep-07 9:19
Opa Knack2-Sep-07 9:19 
AnswerRe: access violation Pin
Christian Graus2-Sep-07 9:31
protectorChristian Graus2-Sep-07 9:31 
GeneralRe: access violation Pin
Opa Knack2-Sep-07 10:47
Opa Knack2-Sep-07 10:47 
GeneralRe: access violation Pin
Christian Graus2-Sep-07 11:10
protectorChristian Graus2-Sep-07 11:10 
QuestionMain Method... Pin
Amit Kumar G2-Sep-07 8:58
Amit Kumar G2-Sep-07 8:58 
AnswerRe: Main Method... Pin
Christian Graus2-Sep-07 9:03
protectorChristian Graus2-Sep-07 9:03 
Questionforce GetMethod() to return parameterless method Pin
AndrusM2-Sep-07 8:27
AndrusM2-Sep-07 8:27 
AnswerRe: force GetMethod() to return parameterless method Pin
Nissim Salomon2-Sep-07 9:42
Nissim Salomon2-Sep-07 9:42 

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.