Jump to content
Xtreme .Net Talk

Recommended Posts

Posted
how would i have VB romove text entered into a text box and load it into either another textbox or one of the label thins? on the click of a button. Ps. how do i change the text color in those textboxes or labels?
  • Leaders
Posted
   Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
       With TextBox2
           .ForeColor = Color.Red '///set the text colour to red
           .Text = TextBox1.Text '/// add the text to the new textbox
       End With

       TextBox1.Text = "" '///clear the old textbox

   End Sub

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...