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: 288

Filed under:

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)

  1. Can I have all controls as a enum as first parameter.
  2. 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

Related posts about .NET