PDA

View Full Version : Visual basic text box


altafingar
04-26-04, 09:42 AM
hello,

i want to write a code that will do following things
1) i have text box, user will input the text in the text box 1
2) in second text box the user input will be displayed.

thanks in advance.


Altaf

kebo
04-27-04, 06:30 PM
hello,

i want to write a code that will do following things
1) i have text box, user will input the text in the text box 1
2) in second text box the user input will be displayed.

thanks in advance.


Altaf

with 2 textboxes on a form, text1 and text2,

Private Sub Text1_KeyPress(KeyAscii As Integer)
Text2.Text = Text1.Text
End Sub

kevin

dazz417
04-30-04, 09:49 AM
hello,

i want to write a code that will do following things
1) i have text box, user will input the text in the text box 1
2) in second text box the user input will be displayed.

thanks in advance.


Altaf

assuming you have 2 text boxes, Text1 & Text2

Private Sub Text1_Change()
Text2.Text = Text1.Text
End Sub