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

VB6 - Unicode ListBox/ComboBox

$
0
0
After dilettante pointed out that the MS InkEdit Control could be used to support Unicode non-latin text, I used it effectively in one of my projects. But I was still looking for a ListBox that would support Unicode and did not require third party controls. It suddenly came to me that the InkEdit control might have everything I need. The only difficulty I ran into is that when the multiline InkEdit Control contents are converted to text, it automatically adds a CrLf to each line even if you just add a Cr. This meant that searching for the CrLf using the SelStart property produced a count error of 1 for each line. The solution was to copy the text to a string and replace the CrLf with a zero. This brought the SelStart property in line with the text.

J.A. Coutts
Attached Images
 
Attached Files

Viewing all articles
Browse latest Browse all 1448

Trending Articles



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