Connecting Tech Pros Worldwide Forums | Help | Site Map

TextBox

[Yosi]
Guest
 
Posts: n/a
#1: Nov 16 '05
How to move the cersure to end of the TextBox?
to TextBox.Text.Length ?

Nicholas Paldino [.NET/C# MVP]
Guest
 
Posts: n/a
#2: Nov 16 '05

re: TextBox


Yosi,

You should be able to call the Select method, passing in the text length
as the index, and a value of zero for the length.

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- mvp@spam.guard.caspershouse.com

"[Yosi]" <Yosi@discussions.microsoft.com> wrote in message
news:302EE7D2-9D15-45AA-9A99-016B6E9A9A32@microsoft.com...[color=blue]
> How to move the cersure to end of the TextBox?
> to TextBox.Text.Length ?[/color]


James Divine
Guest
 
Posts: n/a
#3: Nov 16 '05

re: TextBox




this.textBox1.SelectionStart = this.textBox1.Text.Length;

"[Yosi]" wrote:
[color=blue]
> How to move the cersure to end of the TextBox?
> to TextBox.Text.Length ?[/color]
Closed Thread