English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Im in a beginners visual basic.net course and my teacher wont help me. I have to do the following: Suppose you had two text boxes, Text1 and Text2, and a command button, cmdCopy. Write code so that when cmdCopy is clicked, the text from Text1 is copied to Text2 (replacing all the text in Text2).

2006-12-04 13:50:55 · 3 answers · asked by bhs00 2 in Computers & Internet Programming & Design

3 answers

When you click the button, you want to use:

text2.text = text1.text

2006-12-04 13:54:40 · answer #1 · answered by Troy 3 · 0 0

Sub cmdCopy_onClick(ByVal E As EventArgs) Handles cmdCopy.Click

Text2.Text = Text1.Text

End Sub

2006-12-04 22:38:30 · answer #2 · answered by Anonymous · 0 0

DO YOUR WORK
DONT CHEAT

2006-12-04 21:54:08 · answer #3 · answered by googoo 3 · 0 0

fedest.com, questions and answers