- 博客(15)
- 收藏
- 关注
转载 .net可分发安装包在VS2010中的目录
C:\Program Files\Microsoft SDKs\Windows\v7.0A\Bootstrapper\Packages转载于:https://www.cnblogs.com/liuhx1027/archive/2010/10/18/1854593.html
2010-10-18 16:56:00 81
转载 修复:VS中的中文拷贝到Word时出现乱码
//每個中文字後會連著一到兩個多餘字元 private void btnFix_Click(object sender, EventArgs e) { //取得剪貼簿內容 IDataObject dataObject = Clipboard.GetDataObject(); if (dataObject.GetDataPresent(D...
2010-10-09 14:01:00 99
转载 C#如何获取鼠标相对当前窗口的坐标
可以用Control.MousePosition获得当前鼠标的坐标,使用PointToClient计算鼠标相对于某个控件的坐标,如下 Point screenPoint = Control.MousePosition;//鼠标相对于屏幕左上角的坐标 Point formPoint = this.PointToClient(Control.MousePosition);//鼠标相对...
2010-10-03 12:08:00 139
转载 自定义用户控件在设计时报错的问题
设计模式下如果在控件的Load事件或构造函数中写入代码,并且这些代码的执行依赖运行时环境时,会出现这种问题。解决方法是判断在执行这些代码前检查控件的“DesignMode”属性的值。转载于:https://www.cnblogs.com/liuhx1027/archive/2010/10/03/1841491.html...
2010-10-03 00:06:00 95
转载 outlook2007 未知错误,代码0x80040600解决方法
安装目录下找到scanpst.exe文件并打开,选择邮件存储的pst文件,进行修复即可。转载于:https://www.cnblogs.com/liuhx1027/archive/2010/09/26/1836047.html
2010-09-26 15:19:00 455
转载 转载 实现CLR异步编程模型 Jeffrey Richter
网址:http://msdn.microsoft.com/zh-cn/magazine/cc163467.aspx转载于:https://www.cnblogs.com/liuhx1027/archive/2010/09/25/1834679.html
2010-09-25 16:30:00 61
转载 Widnows7下让应用程序自动请求管理员权限
添加一个Application Manifest文件,设置trustInfo节如下: <trustInfo xmlns="urn:schemas-microsoft-com:asm.v2"> <security> <requestedPrivileges xmlns="urn:schemas-microsoft-com:as...
2010-09-20 15:42:00 71
转载 生成DataAdapter的InsertCommand、UpdateCommand、DeleteCommand
OleDbCommand cmd = conn.CreateCommand();cmd.CommandType = CommandType.Text;cmd.CommandText = "SELECT * FROM song WHERE 1=0";OleDbDataAdapter da = new OleDbDataAdapter(cmd);DataSet ds...
2010-09-19 17:37:00 574
转载 正则表达式参考文档
网址:http://www.regexlab.com/zh/regref.htm#multi转载于:https://www.cnblogs.com/liuhx1027/archive/2010/09/19/1831174.html
2010-09-19 16:47:00 180
转载 选择文件夹对话框使用
public class FolderDialog : FolderNameEditor{ FolderNameEditor.FolderBrowser fDialog = new System.Windows.Forms.Design.FolderNameEditor.FolderBrowser(); public FolderDialog()...
2010-09-19 11:00:00 56
转载 选择文件对话框使用
OpenFileDialog fileDialog = new OpenFileDialog();//fileDialog.InitialDirectory = tbLocalPath.Text;fileDialog.Title = "选择文件";fileDialog.Filter = "xml files (*.xml)|*.xml";fileDialog.Fil...
2010-09-19 10:48:00 62
转载 动态加载某程序集中的某类型实例
Assembly ass = Assembly.LoadFrom("TestClassLibrary.dll");Type t = ass.GetType("TestClassLibrary.TestUserControl");UserControl uc = Activator.CreateInstance(t) as UserControl;if (uc !...
2010-09-18 09:25:00 56
转载 通用异常处理机制框架--转载
网址:http://www.cnblogs.com/bokeren/archive/2007/04/16/715241.html转载于:https://www.cnblogs.com/liuhx1027/archive/2010/09/17/1829398.html
2010-09-17 15:56:00 87
转载 Quartz.net 读取配置文件中的Job方法
ISchedulerFactory schedFactory = new StdSchedulerFactory();sched = schedFactory.GetScheduler();//读取配置文件中配置的Job和Trigger信息到Scheduler中JobSchedulingDataProcessor processor = new JobSchedul...
2010-09-17 15:35:00 381
转载 读取DLL自身的配置文件
读取: ExeConfigurationFileMap configFile = new ExeConfigurationFileMap();configFile.ExeConfigFilename = DllConfigFilePath;_config = ConfigurationManager.OpenMappedExeConfiguration(configF...
2010-09-17 15:26:00 196
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人