Quantcast
Channel: Programming Forums
Viewing all articles
Browse latest Browse all 51036

make info show up in label from controls in windows form application

$
0
0
I am new to vb and to this forum so please let me know if you need more info I am trying to get the information a user enters in the controls such as masked text box (phone number) and some radio buttons to appear in a label and I can not figure it out please let me know if you need more information because I am new to this and going crazy trying to figure it out and my professor told us to try to figure it out on the net but I can not find out how to do this anywhere. any help would be much appreciated. I got the first code to make the text box show up in label when the user enters it and make a error show up if they do not type any text which was
Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.TextChanged
If TextBox1.Text <> "" Then
ErrorProvider1.Clear()
Label1.Text = TextBox1.Text
Else
ErrorProvider1.SetError(TextBox1, "Please enter text")
End If
End Subease enter text")

Viewing all articles
Browse latest Browse all 51036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>