Current location: Hot Scripts Forums » Programming Languages » Visual Basic » Visual basic text box


Visual basic text box

Reply
  #1 (permalink)  
Old 04-26-04, 08:42 AM
altafingar altafingar is offline
Newbie Coder
 
Join Date: Mar 2004
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Visual basic text box

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
Reply With Quote
  #2 (permalink)  
Old 04-27-04, 05:30 PM
kebo kebo is offline
Newbie Coder
 
Join Date: Apr 2004
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by altafingar
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
Reply With Quote
  #3 (permalink)  
Old 04-30-04, 08:49 AM
dazz417 dazz417 is offline
Newbie Coder
 
Join Date: Apr 2004
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by altafingar
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
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
MySQL Query problem Wraith PHP 5 03-06-04 05:16 PM
Visual Basic 6.0 XML Programming - including XSL/XSLT Excel and CSS XMLMania.com Visual Basic 0 01-24-04 03:23 PM
picking random entries with a filter... Double selection problem dsumpter PHP 7 11-16-03 07:19 PM
php visual basic perl cgi - outsource programming to india outsource_india General Advertisements 0 10-28-03 03:21 AM


All times are GMT -5. The time now is 01:20 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.