摘要: 现在有更方便的实现方式: static void Main(string[] args) { string input = " "; Task.Factory.StartNew(() => { input = Console.ReadLine(); }).Wait(10 * 1000); Console.WriteLine(input); } 以下是原来... 阅读全文
posted @ 2015-04-29 16:59 假如 阅读(2840) 评论(0) 推荐(0) 编辑
摘要: 1 /// 2 /// 追加同目录下可执行文件到右键菜单中 3 /// 在form的Load事件中调用:new clsContextMenuStrip(this.FindForm()); 4 /// 5 public class clsContextMen... 阅读全文
posted @ 2015-01-30 15:57 假如 阅读(641) 评论(0) 推荐(0) 编辑