摘要: C:\Program Files\Microsoft SDKs\Windows\v7.0A\Bootstrapper\Packages 阅读全文
posted @ 2010-10-18 16:56 风中的云 阅读(276) 评论(0) 推荐(0) 编辑
摘要: //每個中文字後會連著一到兩個多餘字元 private void btnFix_Click(object sender, EventArgs e) {     //取得剪貼簿內容        IDataObject dataObject = Clipboard.GetDataObject();  ... 阅读全文
posted @ 2010-10-09 14:01 风中的云 阅读(429) 评论(0) 推荐(0) 编辑
摘要: 可以用Control.MousePosition获得当前鼠标的坐标,使用PointToClient计算鼠标相对于某个控件的坐标,如下 Point screenPoint = Control.MousePosition;//鼠标相对于屏幕左上角的坐标 Point formPoint = this.PointToClient(Control.MousePosition);//鼠标相对于窗体左上角的坐标... 阅读全文
posted @ 2010-10-03 12:08 风中的云 阅读(2212) 评论(2) 推荐(0) 编辑
摘要: 设计模式下如果在控件的Load事件或构造函数中写入代码,并且这些代码的执行依赖运行时环境时,会出现这种问题。解决方法是判断在执行这些代码前检查控件的“DesignMode”属性的值。 阅读全文
posted @ 2010-10-03 00:06 风中的云 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 安装目录下找到scanpst.exe文件并打开,选择邮件存储的pst文件,进行修复即可。 阅读全文
posted @ 2010-09-26 15:19 风中的云 阅读(964) 评论(0) 推荐(0) 编辑
摘要: 网址:http://msdn.microsoft.com/zh-cn/magazine/cc163467.aspx 阅读全文
posted @ 2010-09-25 16:30 风中的云 阅读(136) 评论(0) 推荐(0) 编辑
摘要: 添加一个Application Manifest文件,设置trustInfo节如下: 阅读全文
posted @ 2010-09-20 15:42 风中的云 阅读(654) 评论(0) 推荐(0) 编辑
摘要: OleDbCommand cmd = conn.CreateCommand();cmd.CommandType = CommandType.Text;cmd.CommandText = "SELECT * FROM song WHERE 1=0";OleDbDataAdapter da = new OleDbDataAdapter(cmd);DataSet ds = new D... 阅读全文
posted @ 2010-09-19 17:37 风中的云 阅读(730) 评论(0) 推荐(0) 编辑
摘要: 网址:http://www.regexlab.com/zh/regref.htm#multi 阅读全文
posted @ 2010-09-19 16:47 风中的云 阅读(102) 评论(0) 推荐(0) 编辑
摘要: public class FolderDialog : FolderNameEditor{ FolderNameEditor.FolderBrowser fDialog = new System.Windows.Forms.Design.FolderNameEditor.FolderBrowser(); public FolderDialog() { } public DialogResult D... 阅读全文
posted @ 2010-09-19 11:00 风中的云 阅读(206) 评论(0) 推荐(0) 编辑