O'Reilly logo

Visual Basic 2005 for Programmers: Deitel Developer Series, Second Edition by Harvey M. Deitel - Deitel & Associates, Inc., Paul J. Deitel - Deitel & Associates, Inc.

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

E.6. Using Unicode

Visual Studio uses Unicode UTF-16 encoding to represent all characters. Figure E.3 uses Visual Basic to display the text "Welcome to Unicode!" in eight different languages: English, French, German, Japanese, Portuguese, Russian, Spanish and Traditional Chinese.

Figure E.3. Windows application demonstrating Unicode encoding.
					1
					' Fig. F.3: Unicode.vb
					2
					' Using Unicode encoding.
					3
					Public Class FrmUnicodeDemo
 4
					Private Sub FrmUnicodeDemo_Load(ByVal sender As System.Object, _
 5
					ByVal e As System.EventArgs) Handles MyBase.Load
 6
					'English
					7        lblEnglish.Text = ChrW(&H57) & ChrW(&H65) & ChrW(&H6C) & _
 8           ChrW(&H63) & ChrW(&H6F) & ChrW(&H6D) & ChrW(&H65) & _
 9           ChrW(&H20) & ChrW(&H74) & ChrW(&H6F) & ChrW(&H20) & _
10
					"Unicode" & ChrW( ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required