1 Replies - 179 Views - Last Post: 30 January 2013 - 10:37 AM Rate Topic: -----

#1 ak4744710  Icon User is offline

  • D.I.C Head

Reputation: 2
  • View blog
  • Posts: 129
  • Joined: 30-January 13

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

Posted 30 January 2013 - 10:34 AM

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")

Is This A Good Question/Topic? 0
  • +

Replies To: make info show up in label from controls in windows form application

#2 modi123_1  Icon User is online

  • Suitor #2
  • member icon



Reputation: 9201
  • View blog
  • Posts: 34,574
  • Joined: 12-June 08

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

Posted 30 January 2013 - 10:37 AM

Please do not open duplicate topics. Closing.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1