会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
学习笔记
博客园
首页
新随笔
联系
管理
订阅
2009年5月30日
WinForm中 手动触发Button Click事件
摘要: 在代码中添入 button1.PerformClick() 即可
阅读全文
posted @ 2009-05-30 12:31 emery
阅读(3069)
评论(1)
推荐(0)
2009年5月25日
C#调用exe
摘要: using System.Diagnostics; static void Main(string[] args) { Process myProcess = Process.Start("c:\\test\\DIY.exe"); while (!myProcess.HasExited) { Console.WriteLine("still running"); Thread.Sleep(1000...
阅读全文
posted @ 2009-05-25 10:12 emery
阅读(439)
评论(2)
推荐(0)
2009年5月12日
去掉文本中的空格
摘要: private void getridofspace() { string new_text = null; OpenFileDialog of = new OpenFileDialog(); of.Filter = "txt文件|*.txt|所有文件|*.*"; of.AddExtension = true; of.Title = "打开文件"; if (of.ShowDialog() == D...
阅读全文
posted @ 2009-05-12 14:45 emery
阅读(441)
评论(0)
推荐(0)
进制转换
摘要: public string ConvertString(string value, int fromBase, int toBase){int intValue = Convert.ToInt32(value, fromBase); return Convert.ToString(intValue, toBase);}
阅读全文
posted @ 2009-05-12 12:55 emery
阅读(159)
评论(0)
推荐(0)
2009年5月9日
Control - ListView
摘要: private System.Windows.Forms.ListView listView1 = new System.Windows.Forms.ListView();listView1.View = View.Details; listView1.FullRowSelect = true; listView1.HeaderStyle = ColumnHeaderStyle.Nonclicka...
阅读全文
posted @ 2009-05-09 12:55 emery
阅读(214)
评论(0)
推荐(0)
KeyEvent
摘要: public partial class Form1 :Form{ public Form1() { InitializeComponent(); this.KeyUp += new System.Windows.Forms.KeyEventHandler(deal_key); //register } private void deal_key(object sender, System.Win...
阅读全文
posted @ 2009-05-09 12:29 emery
阅读(243)
评论(0)
推荐(0)
公告