What you will be passing to the class is not textbox itself but only reference to it.
If you want to pass it as class property, you can define property as shown below. I named it MyTextBox:
TextBox m_TextBox;
public TextBox MyTextBox
{
set
{
m_TextBox = value;
}
private get
{
return m_TexBox;
}
}
Your original TextBox stays wherever it was. You just passed reference to it. In you class you have acess to all members of the original TextBox instance by using MyTextBox property getter.