
c#
文章平均质量分 75
simplebg
这个作者很懒,什么都没留下…
展开
-
c# XML操作
<br />using System; using System.Collections.Generic; using System.Text; using System.Xml; using System.Diagnostics; using System.Data.OleDb; using System.Data; namespace Dll { /// <summary> /// 任务信息XML文件操作类 /// </summary> pub原创 2010-07-02 20:50:00 · 314 阅读 · 0 评论 -
不规则窗体
<br />/***************************************************************************************/ // // 功能描述:不规则窗体和控件的生成类 // 撰 写 人:不祥(网上搜集) // // // 修改说明:2005.8.31 杨丹翻译和修改 // /***********************************************************************原创 2010-07-02 20:28:00 · 166 阅读 · 0 评论 -
播放MP3类
<br />using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Text; using System.Text.RegularExpressions; using System.Runtime.InteropServices; namespace Dll { public class MidPlay {原创 2010-07-02 20:31:00 · 231 阅读 · 0 评论 -
鼠标键盘无输入
<br />using System; using System.Collections.Generic; using System.Text; using System.Runtime.InteropServices; namespace Dll { public class MouseKeys { /// ///获取鼠标闲置时间 /// [StructLayout(LayoutKind.Sequen原创 2010-07-02 20:32:00 · 236 阅读 · 0 评论 -
c# 内存共享
using System; using System.Collections.Generic; using System.Text; using System.Runtime.InteropServices; using System.Threading; namespace Dll { public class ShareMem { [DllImport("user32.dll", CharSet = CharSet.Auto)] p原创 2010-07-02 20:35:00 · 263 阅读 · 0 评论 -
一些API
/// /// 该函数从当前线程中的窗口释放鼠标捕获,并恢复通常的鼠标输入处理 /// /// 如果函数调用成功,返回非零值;如果函数调用失败,返回值是零。 [DllImport("user32")] public static extern bool ReleaseCapture(); /// /// 将一个消息放入(寄送)到与指定窗口创建的线程相联系消息队列原创 2010-07-02 20:21:00 · 217 阅读 · 0 评论 -
关机类
using System; using System.Collections; using System.ComponentModel; using System.Data; using System.Runtime.InteropServices; namespace Dll { public class CloseCpu { public static void CpuReset() { CloseCpu原创 2010-07-05 17:15:00 · 200 阅读 · 0 评论 -
excel读取
<br />using System.Data.OleDb; private void button1_Click(object sender, EventArgs e) { OleDbConnection vOleDbConnection = new OleDbConnection(); vOleDbConnection.ConnectionString = @"Provider=Microsoft.Jet.OLEDB.4.0;" + @"Data Sourc原创 2010-10-22 16:04:00 · 196 阅读 · 0 评论 -
C# 修改IP、网关、DNS
<br /><br />1、在 “解决方案资源管理器” 右击 “引用” 添加 “System.Management” 的引用。<br />2、添加 “using System.Management;”。 <br /> static void SetNetworkAdapter() { ManagementBaseObject inPar = null; ManagementBaseObject outPar = null;原创 2010-11-19 09:04:00 · 471 阅读 · 0 评论