Solved

how to display unicode char in a richtextbox ?

Posted on 2004-08-06
6
2,709 Views
Last Modified: 2008-01-09
how to display unicode char in a richtextbox ?

utvoi.
0
Comment
Question by:utvoi
6 Comments
 
LVL 96

Expert Comment

by:Bob Learned
ID: 11735113
VB6 controls do not make it easy to use Unicode characters.  It took us a long time to figure out how to get it to work.  Internally, the strings are stored in Unicode, so why was it so difficult to make it work--Ansi controls.  As a test, we installed the Chinese Language pack on Windows 2000, and made use of the ChrW function.

Bob
0
 
LVL 22

Assisted Solution

by:DarkoLord
DarkoLord earned 50 total points
ID: 11738843
0
 
LVL 22

Expert Comment

by:danaseaman
ID: 11744829
Forget Microsoft Rich Textbox Control 6.0 (SP6) and the one from VbAccelerator. Neither allows setting Unicode via the Text Property. The one that does work can be downloaded from http://www.mvps.org/emorcillo/cod/ctrl.htm
Set the controls font to "Arial Unicode MS" and you can display Unicode in hundreds of languages. More info can be found at my site www.cyberactivex.com "Unicode Tutorial"
Make sure you send it Unicode and not SBCS/DBCS.
0
 
LVL 2

Assisted Solution

by:davidnsc1
davidnsc1 earned 50 total points
ID: 11746988
He changed his site.  It's at the bottom of http://www.mvps.org/emorcillo/vb6/controls/index.shtml
0
 
LVL 22

Accepted Solution

by:
danaseaman earned 250 total points
ID: 12384940
I believe I provided the correct answer. Rich Textbox  http://www.mvps.org/emorcillo/vb6/controls/index.shtml displays Unicode correctly while MS/VbAccelerator versions do not using the Text property.
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

786 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question