C#加载一个程序集,并运行其中的所有安装程序
.////////@@@是服务的名字. /// <summary>. /// 用ServiceController启用服务. /// </summary>. /// <param name="sender"></param>.
阿泽的个人小站,纯属业余爱好兴趣使然,期间经历过多次变迁,但是依旧留存维护至今。 本站涉猎比较广,建站的初衷也是完全按照站长的兴趣爱好,有技术类、有折腾类、有时尚类、有八卦类……
.////////@@@是服务的名字. /// <summary>. /// 用ServiceController启用服务. /// </summary>. /// <param name="sender"></param>.
.using System.Configuration.Install;.using System.ServiceProcess;.using System.Runtime.InteropServices;..#region DLLImport.[DllImport(“advapi32
要求1、单击form1窗口中按钮后,隐藏form1,显示form2窗口。2、单击form2窗口中按钮后,关闭form2,显示form1窗口。且form1中数据依然存在。源代码://在Form1 按钮中加入Form2 frm=new Form2();frm free viagra sample pac
using System;namespace Test { /// <summary> /// Rmb 的摘要说明。 /// </summary> public class Rmb { /// <summary&g
互斥进程(程序), 简单点说,就是在系统中只能有该程序的一个实例运行. 现在很多软件都有这功能,如Maxthon 可以设置为"只允 许打开一个窗体",还有Bitcomet等. 我也是看到这些软件的这个功能才来研究这个问题的. 要实现程序的互斥,通常有三中方式,下面 用 C#
WinForm开发系列文章、技巧http://www.cnblogs.com/peterzb/tag/WinForm/这是我们群主写的一个把datagridview的数据导出到excel表中的一个方法:1、先导入com组件的引用:Microsoft Excel 11.0 Object Library
//判断字符串是否可以为数字 public bool IsNumber(String strNumber) { Regex objNotNumberPattern = new Regex("[^0-9.-]"); Regex o
/// <summary> /// 查询操作 /// </summary> /// <param name="sql">SQL语句</param> /// <param na
要求1、单击form1窗口中按钮后,隐藏form1,显示form2窗口。2、单击form2窗口中按钮后,关闭form2,显示form1窗口。且form1中数据依然存在。源代码://在Form1 按钮中加入Form2 frm=new Form2();frm.MasterForm=this;//在For