Solved

how to display unicode char in a richtextbox ?

Posted on 2004-08-06
6
2,694 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
VBA to format 3 80
Input past end of file vbs script 9 68
VB 6.0 printer how to align 6 49
Run code from text file in vb 1 33
Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
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…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

757 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now