Examples of traditional and simplified Interchange
Using System;
Using System. Collections. Generic;
Using System. ComponentModel;
Using System. Data;
Using System. Drawing;
Using System. Text;
Using System. Windows. Forms;
Using System. Data. SqlClient;
Using System. Threading;
Using System. Globalization;
Using Microsoft. VisualBasic;
Namespace UI_Test
{
Public partial class Form1: Form
{
Public Form1 ()
{
InitializeComponent ();
}
/* Convert traditional to simplified */
Private void button#click (object sender, EventArgs e)
{
String s = txtContent. Text;
S = Strings. StrConv (s, VbStrConv. SimplifiedChinese, 0); // convert traditional to simplified
TxtContent. Text = s;
}
/* Convert simplified to traditional Chinese */
Private void button2_Click (object sender, EventArgs e)
{
String s = txtContent. Text;
S = Strings. StrConv (s, VbStrConv. TraditionalChinese, 0); // convert simplified to traditional
// S = Strings. StrConv (s, VbStrConv. ProperCase, 0); // uppercase
// S = Strings. StrConv (s, VbStrConv. Narrow, 0); // returns the halfwidth
// S = Strings. StrConv (s, VbStrConv. Wide, 0); // halfwidth to fullwidth
TxtContent. Text = s;
}
}
}
Interface
After conversion:
DEMO Version Download: DEMO