Dynamically display properties of a control
Posted
by Ram
on Stack Overflow
See other posts from Stack Overflow
or by Ram
Published on 2010-04-15T06:52:53Z
Indexed on
2010/04/15
7:03 UTC
Read the original article
Hit count: 291
.NET
Hi,
To access the properties of windows controls in multi threaded application, I have modified my code as specified here solution. Although for calling the "SetControlValueMethod" I also need to pass the type of control and its specific property as text. I am looking for more convenient approach for callingvoid SetControlValueMethod(Control controlType,string propertyName, object value)
- Can I have all controls as a enum as first parameter.
- can I have properties of the selected control appear for second parameter, I don't want to type property name there. Can I have them appearing like enum for selected control?
© Stack Overflow or respective owner