Going to the end of a control

  • Thread starter Thread starter PromisedOyster
  • Start date Start date
P

PromisedOyster

How do I programmatically set the caret position to the end of a
Windows edit box control?

I was looking at using SendKeys but is there a better way?
 
See:

TextBox.ScrollToCaret()
TextBox.SelectionStart
TextBox.SelectionLength

Of course, you'd only want to do this to set the caret to the end of the
TEXT that is in the textbox...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top