using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Microsoft.International.Formatters;
using System.Globalization;
namespace Num
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
int iNum = int.Parse(this.textBox1.Text);
this.textBox2.Text = EastAsiaNumericFormatter.FormatWithCulture("L", iNum, null, new CultureInfo("zh-CN"));
this.textBox3.Text = EastAsiaNumericFormatter.FormatWithCulture("L", iNum, null, new CultureInfo("zh-TW"));
}
}
}
Visual Studio International Feature Pack 2.0 参考知识
http://www.wowpc.cn/thread-13909-1-1.html
程序下载: