Click here to get back home

Cursor Position in Textbox

 HomeNewsGroups | Search

microsoft.public.smartphone.developer - Developing software for MS Smartphone? This is your group! 

get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Cursor Position in Textbox Davie 09-19-2005
  `--> Re: Cursor Position in Textbox Xiaomaùxš¢fŠÇ.²È¨žÉ¢rº,¡û\¢09-20-2005
Posted by Davie on September 19, 2005, 9:22 am
Please log in for more thread options
When i select a textbox, the cursor always positions itself at the start of
the text rather than at the end. How can I set the cursor position to
appear at the end of the text which is in the textbox?

Many Thanks.




Posted by Davie on September 19, 2005, 12:58 pm
Please log in for more thread options
Solved this one, using the Textbox GotFocus event, you can listen for when
the focus. When this occurs simply set the SelectionStart to be the value
of the Text.Length

private void TextBox_GotFocus(object sender, System.EventArgs e)

{

this.textbox1.TextBox.SelectionStart = this.textbox1.Text.Length;

}



show/hide quoted text




Posted by Xiaomaùxš¢fŠÇ.²È¨žÉ¢rº,¡û\¢ on September 20, 2005, 8:01 pm
Please log in for more thread options
I met the same problem. Thanks for you hard working Davie,I'll try it!


"Davie" wrote:

show/hide quoted text


Similar ThreadsPosted
Pocket PC 2003 Wait Cursor July 26, 2006, 4:54 am
Get GPS position March 26, 2006, 5:43 pm
Scroll position in dialog August 4, 2005, 1:47 pm
GetAsyncKeyState and stylus tap position October 14, 2008, 10:42 am
Scroll position in Dialog window? July 18, 2005, 5:44 am
critical.How to get position of video from WMP10 with APP made by December 18, 2008, 4:57 am
Textbox CF September 19, 2005, 9:15 am
Uppercase TextBox January 8, 2007, 6:38 am
How do I disable textbox keypresses... August 12, 2005, 9:25 pm
WM 5.0 CF2 Problem with multiline textbox? August 30, 2005, 2:29 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Driving a better car - Fuelzilla.com

Cabling site for homeowners and pros alike - Cabling-Design.com

Friends:

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap
Privacy Policy