I do VB so I'm going to hork up the C# code
TextBox A = New TextBox();
TextBox B = New TextBox();
TextBox Ref;
Ref= A;
Ref=Text() = "TextBox A";
Ref= B;
Ref.Text() = "TextBox B";
The Ref variable here is a reference to whatever TextBox you assign it to.
Is that what you needed?
Chris
"Henry" <He***@discussions.microsoft.com> wrote in message
news:33**********************************@microsof t.com...
I am trying to get a variable to act as a reference variable. Any
suggestions on how to achieve this in c#? The variable will be of type
TextBox.
Thanks in advance!