Read winform control properties via reflection
-
I have an assembly that contains several winforms which itself contains several controls. I want to dynamically get list of controls on all the web forms in assemly and then check certain properties on each control. Is it doable via refelction? If so can you please post some example code?
-
I have an assembly that contains several winforms which itself contains several controls. I want to dynamically get list of controls on all the web forms in assemly and then check certain properties on each control. Is it doable via refelction? If so can you please post some example code?
imak wrote:
Is it doable via refelction?
Yes it is. But it will be quite bad considering application performance.
imak wrote:
If so can you please post some example code?
Well, you should try yourself first and then ask with specific details. That is what the guidelines say.