
一、获取程序集版本 程序代码 复制代码 代码如下: label版本.Text = System.Reflection.Assembly.GetExecutingAssembly().Ge....
以下给出源代码: (注:hide为窗体名称) 复制代码 代码如下:private void hide_Load(object sender, EventArgs e) { System.....
复制代码 代码如下:using System; using System.Drawing; using System.Windows.Forms; using System.Threading; using Micr....
我想到了如下方法,即创建一个Timer控件(以下名为timer_singleclick),一旦单击发生,就自动启动Timer的Tick事件(timer_sing....
首先,动态生成PictureBox,很简单, PictureBox box = new PictureBox() ; box.ImageLocation = imageRoad ; 其次,给Pictu....
为了完成以上的需求,我们就需要模拟浏览器浏览网页,得到页面的数据在进行分析,最后把分析的结构,即整理好的数据写入数据....
//十进制转二进制 Console.WriteLine(Convert.ToString(69, 2)); //十进制转八进制 Console.WriteLine(Convert.ToString(69,....
--DateTime 数字型 System.DateTime currentTime=new System.DateTime(); 1.1 取当前年月日时分秒 currentTime=System.Dat....
此时希望用户不能通过键盘alt+F4来结束程序及通过Win的组合键对窗口进行操作。我在网上搜索了一下,采用全局键盘钩子的方法....
编译篇 研究Chrome ,首先得把它编译出来,这对于后续的代码分析和阅读有很大的帮助,想想自己编译出一个 Chrome 浏览器来使....
复制代码 代码如下:using System; using System.IO; public class FileApp { public static void Main() { ....
复制代码 代码如下:using System; using System.Data; using System.Configuration; using System.Web; using System.Web.Se....
1.设置WinForm窗体属性showinTask=false 2.加notifyicon控件notifyIcon1,为控件notifyIcon1的属性Icon添加一个icon图标。 3....
C#面向对象的基本原则 一、面向接口编成而不是实现 [Code to an interface rather than to an implementation.] 二、优先使....
复制代码 代码如下:/删除文件夹,参数文件夹路径 protected void DeleteDirectory(string dir,bool deleteSubDir) { try { D....
前段时间由于VSS上的一个项目要给2个公司开发使用,而2个公司的需求不同 就把该项目复制到VSS上的另外一个目录,结果在别人....
需要添加对 System.Management.dll 的引用 复制代码 代码如下:using System.Diagnostics; using System.Management;static v....
SQLHelper.cs复制代码 代码如下:using System; using System.Collections.Generic; using System.Text; using System.Collec....
1、用字符串分隔: 复制代码 代码如下:using System.Text.RegularExpressions; string str="aaajsbbbjsccc"; string[] sArra....
一.使用MSScriptControl 到微软的网站上下载Windows Script Control,它是一个ActiveX(R) 控件,所以在.NET中使用我Interop....