Thread: TextBox Cursor
View Single Post
  #1 (permalink)  
Old 07-02-2007, 07:11 PM
RandomCoder's Avatar
RandomCoder RandomCoder is offline
Basic4ppc Expert
 
Join Date: May 2007
Location: Derbyshire, UK
Posts: 621
Awards Showcase
Beta Tester 
Total Awards: 1
Default TextBox Cursor

I'm in need of some

My editable table program (http://www.basic4ppc.com/forum/code-samples-tips/487-editable-table.html) could be made better if the data in the TextBox was highlighted ready to be overwritten with new data.

This seems to have got the better of me even though I'm certain it must be possible.
So far I've tried turning the Focus onto the TextBox but this didn't work, I then tried selecting whatever data was in the TextBox but still no joy.
What else is there to do

Anyway, here's what I've already tried....
Code:
    TextBox1.Focus=True
TextBox1.SelectionStart=
0
TextBox1.SelectionLength= StrLength(TextBox1.Text)
Any takers on what I'm doing wrong?

Thanks,
RandomCoder
__________________
"Defeat never comes to any man until he admits it."Josephus Daniels
Reply With Quote