By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,534 Members | 865 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,534 IT Pros & Developers. It's quick & easy.

Scrolling within a Text Box

P: n/a
In VB.Net, if you click on an editable text box which is
too small to fully display its contents, the content are
right aligned (i.e. scrolled).
This is OK, however when you move away from the text box,
the display is not changed, i.e. the contents are not then
left aligned again so that the user sees the beginning of
the contents, not the end.
How do I change this programatically?
Nov 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
I'm not sure I understand your question completely, but try this:

TextBox1.SelectionStart = 0
TextBox1.SelectionLength = 0

Erik

"Geoff Olding" <an*******@discussions.microsoft.com> wrote in message
news:0c****************************@phx.gbl...
In VB.Net, if you click on an editable text box which is
too small to fully display its contents, the content are
right aligned (i.e. scrolled).
This is OK, however when you move away from the text box,
the display is not changed, i.e. the contents are not then
left aligned again so that the user sees the beginning of
the contents, not the end.
How do I change this programatically?

Nov 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.