
07-09-2012, 10:14 AM
|
|
Junior Contributor
|
|
Join Date: Jun 2010
Posts: 270
|
|
TextBox CurLine property
|
I am having an issue with this property
I have some code that will fill text into a TextBox, once the code has finished, I want to set the cursor to the top of the TextBox
I have found the property TextBox1.CurLine will do this...I can set it to = 1, this will select the 2nd line, = -1 which will select the last line, but when I try to set it to 0 (which should be the 1st line), I get a runtime error
Quote:
Run-time error '-2147418113 (8000ffff)':
Could not set the CurLine property. Unexpected call to method or property access.
|
I have set the TextBox to have focus, so it's not that, and as I already said, I can set CurLine to any other number with no problem..
Any ideas?
|
|