Click here to Skip to main content
15,912,977 members
Home / Discussions / C#
   

C#

 
QuestionUI Culture Manipulation Pin
M. J. Jaya Chitra2-Sep-07 20:50
M. J. Jaya Chitra2-Sep-07 20:50 
QuestionFocus-problems Pin
J. Holzer2-Sep-07 20:43
J. Holzer2-Sep-07 20:43 
QuestionProblems with low on virtual memory while converting large .csv files to xml... Pin
tiasoft2-Sep-07 20:38
tiasoft2-Sep-07 20:38 
QuestionAdd items to property grid dynamically Pin
varad272-Sep-07 20:37
varad272-Sep-07 20:37 
AnswerRe: Add items to property grid dynamically Pin
Sandeep Akhare2-Sep-07 22:15
Sandeep Akhare2-Sep-07 22:15 
GeneralRe: Add items to property grid dynamically Pin
varad272-Sep-07 22:27
varad272-Sep-07 22:27 
GeneralRe: Add items to property grid dynamically Pin
visualhint10-Sep-07 6:41
visualhint10-Sep-07 6:41 
QuestionLearning C#: How do I add a simple multi-dimension array to a DataViewGrid Control? Pin
nonamecoder2-Sep-07 20:31
nonamecoder2-Sep-07 20:31 
AnswerRe: Learning C#: How do I add a simple multi-dimension array to a DataViewGrid Control? Pin
MAW303-Sep-07 18:08
MAW303-Sep-07 18:08 
QuestionParameters Pin
htonivt2-Sep-07 20:26
htonivt2-Sep-07 20:26 
Questionhow to generate pdf by reporting services, or by reportwiewer?????? Pin
liujw2-Sep-07 20:01
liujw2-Sep-07 20:01 
Questionmessage count down counter Pin
troubled one2-Sep-07 18:56
troubled one2-Sep-07 18:56 
AnswerRe: message count down counter Pin
Syed Mujtaba Hassan2-Sep-07 19:54
Syed Mujtaba Hassan2-Sep-07 19:54 
GeneralRe: message count down counter Pin
troubled one3-Sep-07 15:32
troubled one3-Sep-07 15:32 
QuestionLoading Datasets Pin
MAW302-Sep-07 18:28
MAW302-Sep-07 18:28 
AnswerRe: Loading Datasets Pin
Syed Mujtaba Hassan2-Sep-07 20:02
Syed Mujtaba Hassan2-Sep-07 20:02 
GeneralRe: Loading Datasets Pin
MAW303-Sep-07 10:08
MAW303-Sep-07 10:08 
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

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.