You'll need to:
(1) parse your expression string, then use the System.Reflection API to get
the values of each sub-property in turn.
or
(2) Comple the expression and load the resulting assembly (requires compiler
installed)
or
(3) Choose a scripting language that can handle your expression, and ask it
to evaluate your expression. (Try IronPython- that should work for you.)
m
"George Meng" <ge************@sohu.com> wrote in message
news:e5****************@TK2MSFTNGP15.phx.gbl...
Hi folks,
I have a Treeview control in the Winform, and I want to change the text of
the 5th node base on an expression:
dim sObject as string = "Treeview1.Node.Items(5).Text"
dim sValue as string = "New Text for the node"
How can I make this happen by using reflection or any other way?
Basically, my question is how I can make change to a complex property:
Object.Property.property
Thanks for any ideas.
George