D
Deckarep
I want to be able to pass in a function a string say: "TextBox"
Then I need a way to convert that string representation into a Type
object so i can search through some controls and check their type.
Then I can do my check: If ( control is type) { //continue }
I'm doing this inside of a recursive function which goes through the
ControlTree.
Thanks in advance,
-Ralph
P.S. I would pass in a Type object to begin with into my recursive
call like typeof(TextBox) but my recursive function breaks and claims
that it doesn't have access to protected type member. I have no idea
why this happens.
Then I need a way to convert that string representation into a Type
object so i can search through some controls and check their type.
Then I can do my check: If ( control is type) { //continue }
I'm doing this inside of a recursive function which goes through the
ControlTree.
Thanks in advance,
-Ralph
P.S. I would pass in a Type object to begin with into my recursive
call like typeof(TextBox) but my recursive function breaks and claims
that it doesn't have access to protected type member. I have no idea
why this happens.