Test on Traditional Chinese Simplified Interchange

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.