Hi,

I created a user control that contains a label. I had a textbox and button in my application too. Whatever the user text in the textbox and click on the button, the text will appear in the label. Anyone know how to do it...? I'm using VB code.

Below is the coding I'd done. But it can only read the text from the textbox once. And the user control can only appear once. How can I do it in order to make the user control appear as many times as when the user click on the button...? I'm using WPF application.

Dim user As New UserControl3


If TxtBox.Text <> "" Then

Dim test As String

test = Convert.ToString(TxtBox.Text)

testGrid.Children.Add(user)

user.textLabel.Content = test

user.Visibility = Windows.Visibility.Visible

Thanks