The usercontrol will need to expose properties. For example:
Remember, a usercontrol is like a black box, it's internal data is hidden from the outside (concept of encapsulation). Only expose what needs to be exposed.Code:public string TextBoxContents { get { return txtName.Text; } set { txtName.Text = value; } }




Reply With Quote