How To Read and Display UNICODE String on Visual Basic Form
This article was previously published under Q193540 On This PageSUMMARY
This article demonstrates how to read a Unicode string from a Unicode text
file and display the string on a Visual Basic form.
MORE INFORMATION
Visual Basic is based internally on the double-byte Unicode standard.
However, most of the world outside of Visual Basic still uses the single-
byte ANSI model. For this reason, Visual Basic provides two sets of form
controls and uses the ANSI set as the default control. Any strings passed
to the ANSI set of form controls will be converted from their internal
Unicode representation to an ANSI representation and will not display the
UNICODE strings correctly. To be able to display the UNICODE string on a
Visual Basic form, the UNICODE (Forms 2.0) controls must be used. The
following example shows how to use the Forms 2.0 controls to display
UNICODE strings read from a Unicode text file. Because this behavior
requires UNICODE language package support, it currently supported only in
Windows NT.
NOTE: The Forms 2.0 controls used in this article were not designed for use on Visual Basic forms and have not been formally tested in the environment. This article documents their use only in this very limited context to work around a limitation to the Visual Basic Intrinsic controls. Using other features of these controls on Visual Basic forms is not supported. Furthermore, Forms 2.0 is part of Microsoft Office and is not redistributable. Therefore, you cannot distribute Forms 2.0 (fm20.dll) with your application. It must already be on the target machines. For additional information on distributing fm20.dll, please see the following article in the Microsoft Knowledge Base: 224305 (http://support.microsoft.com/kb/224305/EN-US/) INFO: Usage and Redistribution of FM20.DLL [OffDev]
Step-by-Step Guide to Build Sample
REFERENCES
For additional information, please see the following articles in the
Microsoft Knowledge Base:
177561 (http://support.microsoft.com/kb/177561/EN-US/) How To Add and Enable Additional Languages in Windows NT
224305 (http://support.microsoft.com/kb/224305/EN-US/) INFO: Usage and Redistribution of FM20.DLL [OffDev]
APPLIES TO
| Article Translations
|

Back to the top
