随笔分类 -  Question & Solution List

摘要:C:\Program Files\Microsoft SDKs\Windows\v7.0A\Bootstrapper\Packages 阅读全文
posted @ 2010-10-18 16:56 风中的云 阅读(289) 评论(0) 推荐(0)
摘要://每個中文字後會連著一到兩個多餘字元 private void btnFix_Click(object sender, EventArgs e) {     //取得剪貼簿內容        IDataObject dataObject = Clipboard.GetDataObject();  ... 阅读全文
posted @ 2010-10-09 14:01 风中的云 阅读(438) 评论(0) 推荐(0)
摘要:可以用Control.MousePosition获得当前鼠标的坐标,使用PointToClient计算鼠标相对于某个控件的坐标,如下 Point screenPoint = Control.MousePosition;//鼠标相对于屏幕左上角的坐标 Point formPoint = this.PointToClient(Control.MousePosition);//鼠标相对于窗体左上角的坐标... 阅读全文
posted @ 2010-10-03 12:08 风中的云 阅读(2237) 评论(2) 推荐(0)
摘要:设计模式下如果在控件的Load事件或构造函数中写入代码,并且这些代码的执行依赖运行时环境时,会出现这种问题。解决方法是判断在执行这些代码前检查控件的“DesignMode”属性的值。 阅读全文
posted @ 2010-10-03 00:06 风中的云 阅读(172) 评论(0) 推荐(0)
摘要:ISchedulerFactory schedFactory = new StdSchedulerFactory();sched = schedFactory.GetScheduler();//读取配置文件中配置的Job和Trigger信息到Scheduler中JobSchedulingDataProcessor processor = new JobSchedulingDataProcessor... 阅读全文
posted @ 2010-09-17 15:35 风中的云 阅读(614) 评论(0) 推荐(0)
摘要:读取:  保存:Configurationconfig = CurrentDllConfiguration; config.Save(); DllConfigFilePath定义:private static stringDllConfigFilePath {           ... 阅读全文
posted @ 2010-09-17 15:26 风中的云 阅读(788) 评论(0) 推荐(0)