Hi skifreak,
We can add two propertiesfor the UserControl, onefor theListBox.Items and the otherfor TextBox.Text.Something like the following code.
Code Snippet
public ListBox.ObjectCollection Items
{
get { return this.listBox1.Items; }
}
public string TextBoxText
{
get { return this.textBox1.Text; }
}
Then you can get data from this UserControl using these properties.
Hope this helps.
Regards
You can create your user control using Adding User Control from the Project Manu
Main Menu> Project> Add User Control
It will show a workspace to work with the user control. it is just like a form.
Add your controls and do your code. After that compile.
After that you can use just like a Label and TextBox