> Anybody can help me in C#.net how to do macro like vfp..
>
>
> Foxpro style:
>
> mystring = "thisform.textbox."
> myprop = "enabled"
> mytrue = "=.T."
>
> mymacro = mystring+myprop+mytrue
>
> &mymacro
>
>
> here's what I need in C#.net
>
> textBox1.Enable = true; - this would be my execution.
>
> string mystring mytexbox = "textBox1";
> string myprop = "Enable ==";
> boolean mytrue = true;
>
> How to execute it in C#?
>
>
> Thanks in advance...
>
> Gary
You can use
CallByName, which is the closet AFAIK method you can reach to macro in VFP
This is
Vb.Net syntax, ask or search for C# Conversion
Dim mycontrol as object = Me.Textbox1 ' <-- this control cannot be substituted
Dim myprop = "enabled"
Dim mytrue = False
CallByName(mycontrol, myprop, CallType.Set, mytrue)
Samir Ibrahim