C# 打开Internet属性 用到的一些代码
2010-12-21 11:51
246 查看
System.Diagnostics.Process.Start("Inetcpl.cpl");string result= System.Text.RegularExpressions.Regex.Replace(yourStr, "([ ]+)", ""); 正则去掉空白字符
C# 简体中文转换为繁体中文
using Microsoft.VisualBasic;
namespace ConsoleApplication1
{
public class ChangeChinese
{
/// <summary>
/// 转换为半角字符串
/// </summary>
public static string 转换为半角(string 字符串)
{
return Strings.StrConv(字符串, VbStrConv.Narrow, 0);
}
/// <summary>
/// 转换为简体中文
/// </summary>
public static string 转换为简体中文(string 字符串)
{
return Strings.StrConv(字符串, VbStrConv.SimplifiedChinese, 0);
}
/// <summary>
/// 转换为繁体中文
/// </summary>
public static string 转换为繁体中文(string 字符串)
{
return Strings.StrConv(字符串, VbStrConv.TraditionalChinese, 0);
}
}
}
C# 简体中文转换为繁体中文
using Microsoft.VisualBasic;
namespace ConsoleApplication1
{
public class ChangeChinese
{
/// <summary>
/// 转换为半角字符串
/// </summary>
public static string 转换为半角(string 字符串)
{
return Strings.StrConv(字符串, VbStrConv.Narrow, 0);
}
/// <summary>
/// 转换为简体中文
/// </summary>
public static string 转换为简体中文(string 字符串)
{
return Strings.StrConv(字符串, VbStrConv.SimplifiedChinese, 0);
}
/// <summary>
/// 转换为繁体中文
/// </summary>
public static string 转换为繁体中文(string 字符串)
{
return Strings.StrConv(字符串, VbStrConv.TraditionalChinese, 0);
}
}
}
相关文章推荐
- <C#>_使用代码编辑控件属性的一些小技巧
- C#用到的一些代码汇总,后期再整理
- 写C#代码时用到的中文简体字 、繁体字 对应的转化 (收藏吧)
- c#后台修改前台DOM的css属性示例代码
- 一些常见的C#代码收集站点(牛)
- C#打开控制面板里的某一属性窗口
- C#中调用对应的应用程打开文件序的代码
- RelativeLayout用到的一些重要的属性(转)
- RelativeLayout用到的一些重要的属性
- C#中关于打开文本更改其中字体并保存的代码
- 工作中用到的一些代码
- C#通过XML节点属性/属性值读取写入XML操作代码实例
- 属性方式,项目中一些不用的代码
- Windows8系统如何打开任务栏和导航属性进行一些设置
- 【C#属性理解】--与SQL交互用到的 【DataSet】相关
- C#学习,整理一些API类,外挂编程需要用到
- VS2015使用技巧 打开代码片段C#部分
- C#搞工控的一些代码
- C#程序员经常用到的10个实用代码片段
- RelativeLayout用到的一些重要的属性