摘要: 在代码中添入 button1.PerformClick() 即可 阅读全文
posted @ 2009-05-30 12:31 emery 阅读(3033) 评论(1) 推荐(0) 编辑
摘要: 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 阅读(427) 评论(2) 推荐(0) 编辑
摘要: 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 阅读(432) 评论(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 阅读(152) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(205) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(238) 评论(0) 推荐(0) 编辑