Solved

copying text from text box..

Posted on 2004-10-02
1
156 Views
Last Modified: 2010-05-18
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
Comment
Question by:ganatra
1 Comment
 
LVL 55

Accepted Solution

by:
Jaime Olivares earned 25 total points
ID: 12206992
Try with:

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

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question