Solved

how to control cursor position in a vb.net text box

Posted on 2004-04-07
1
508 Views
Last Modified: 2012-08-13
I am working on a chat room system..I append text every time a message appears, but the text box scrool back to the beginning every time.  How can I force the scroll bars on the text box so the last text is visible.?

scott
0
Comment
Question by:ocsscott
1 Comment
 
LVL 28

Accepted Solution

by:
iboutchkine earned 50 total points
Comment Utility
       TextBox1.SelectAll()
        TextBox1.SelectionStart = TextBox1.SelectionLength
        TextBox1.Focus()

or=========================
        TextBox1.SelectAll()
        TextBox1.SelectionStart = TextBox1.SelectionLength
        TextBox1.ScrollToCaret()

0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

IP addresses can be stored in a database in any of several ways.  These ways may vary based on the volume of the data.  I was dealing with quite a large amount of data for user authentication purpose, and needed a way to minimize the storage.   …
Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

772 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now