Visual Studio International Feature Pack 2.0写一个多语言数字转换程序

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

程序下载:

http://www.wowpc.cn/thread-13912-1-1.html

posted @ 2010-05-09 16:37  wangbin5542  阅读(467)  评论(0编辑  收藏  举报