• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 163
  • Last Modified:

copying text from text box..

I have two text boxes, that have scroll bars and are multi line..  when i write text in text1, it copies it to text2.  when the scrolling starts, the text1 where i am typing starts scrolling, but text2 doesnt scroll automaticallty.. i have to scroll down to see the last thing typed.. i  want the text2 textbox also to show the last line typed.. is it possible ??  here is the simple code..

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


regards...
0
ganatra
Asked:
ganatra
1 Solution
 
Jaime OlivaresSoftware ArchitectCommented:
Try with:

Private Sub Text1_Change()
Text2.Text = Text1.Text
Text2.SelStart = len(Text2.Text)
'etcetera
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now