Quantcast
Channel: VBForums - CodeBank - Visual Basic 6 and earlier
Viewing all articles
Browse latest Browse all 1529

VB6 - InkEdit and SelText

$
0
0
The InkEdit Control has many useful features, but when it comes to SelText, it does not behave like a normal TextBox. When recovering the text from a multiline InkEdit box, each line is separated by a vbCrLf (&H0D, &H0A). But the SelStart property only uses a vbCr (&H0D). So when you search for a character string, you will get an extra character for each line. This is my way around the problem, and there may be a better way.

Enter the string to search for in the upper TextBox and hit <Enter>. If the string is found, it will be highlit. To find the next instance, use <Ctrl-n>.

J.A. Coutts
Attached Images
 
Attached Files

Viewing all articles
Browse latest Browse all 1529

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>