[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 689
  • Last Modified:

How can i scroll down automatically.

I have one text box, Property Readonly is True, in this text box, The latest data (entered by the user)  is appending at the end of this textbox, there are so many lines in this Textbox, every time i have to scroll down to see the latest information in this textbox.  so plese guide me, how can i fix my Scroll down always. Thanx in Advance.
0
mahmood66
Asked:
mahmood66
1 Solution
 
Jorge PaulinoIT Pro/DeveloperCommented:
Hi mahmood66,

You can do TextBox1.ScrollToCaret()

jpaulino
0
 
Bob LearnedCommented:
In order to ScrollToCaret to work, the SelectionStart needs to be set to the end.

Bob
0
 
mahmood66Author Commented:
txttaskdetail.selectionstart = txttaskdetails.text.length
txttaskdetails.scrooltoCarret()
0

Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

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