
Textbox and RTF controls .SelectionStart property differences
Hey ho,
Wassup with this? Under VB6 if you have a text box that is multiline and you
add text to it. A simple:
Text1.SelStart = Len(Text1.Text)
would scroll the box to the bottom. Easy!
Under VB7, how come when I set the .SelectionStart property, it doesn't
work! Well, sort of, the textbox has to have focus (sorry, be 'activated')
one event loop before the .SelectionStart is done. Now, for example, if you
were writing some sort of text client (say, telnet) with a scrollable
history... or, if you were making any sort of text editor, this could be a
potential problem.
Or, is there a way around that problem?
The other problem I have noticed is that the textbox automatically selects
text when you add text to it. This is desirable in a number of cases, but
also annoying. Is there anyway to turn this 'feature' off?
I have NOT posted this under My Feedback yet... wanna see what you guys
think of this one first.
Lee Packham
(lpackham"$%thechsharps.com)