M
Mark Raishbrook
....without resorting to SendMessage. Imagine, for example,
I have a small RTB whose text has wrapped as follows:
"This is a small test to see if I can get"
"both of these lines".
GetLineFromCharIndex(RTB.TextLength) returns 1, telling me
there are two lines in there. Using the Lines property to
retrieve them will fail, however. As the line has
soft-wrapped (i.e. the user has not hit Enter after "get"),
it returns "This is a small test to see if I can get both of
these lines".
In VB6, SendMessage would come to the rescue here. Is there
a managed way of achieving the same thing?
I have a small RTB whose text has wrapped as follows:
"This is a small test to see if I can get"
"both of these lines".
GetLineFromCharIndex(RTB.TextLength) returns 1, telling me
there are two lines in there. Using the Lines property to
retrieve them will fail, however. As the line has
soft-wrapped (i.e. the user has not hit Enter after "get"),
it returns "This is a small test to see if I can get both of
these lines".
In VB6, SendMessage would come to the rescue here. Is there
a managed way of achieving the same thing?