- 博客(5)
- 资源 (7)
- 收藏
- 关注
原创 C# winform 获取汉字首字母拼音
static public string getSpells(string input) { int len = input.Length; string reVal = ""; for(int i=0;i { reVal += getSpell(input.Substring(i,1)); } return reVal; } static public
2008-01-31 19:29:00 1520 1
原创 C# winform TreeView 中 checkbox 如果上级选中 下级则自动选中
//子级方法 private void checkAllChildren(TreeNode nodeParent) { for( int i = nodeParent.Nodes.Count - 1; i>=0; i-- ) { if (nodeParent.Nodes[i].Checked!=
2008-01-31 19:44:00 2004
原创 C# winform 调用系统声音
using System.Runtime.InteropServices;引用命名空间[DllImport("kernel32.dll")]public static extern bool Beep(int frequency, int duration); 调用系统dll Beep(0X0FF,100); oxxff 表示声音
2008-01-31 19:34:00 5400 1
原创 C# winform 快速方便注释
在vs里面 要写注释 之需要 敲出 /// 就会出来 /// 下面第一个方法的注释 当你在调用这个方法时 将会出现你写的注释..../// /// 写你想写的注释... /// /// 对应参数的注释... /// 对应参数的注释... private void StockPlan_Load(object sender, System.EventArgs e)
2008-01-30 21:44:00 1972
原创 C# winform 调用系统时间窗体
System.Diagnostics.Process.Start("TimeDate.cpl");调用系统时间窗体System.Diagnostics.Process.Start("calc.exe");调用系统其他exe文件
2008-01-30 21:35:00 1159
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人