
C#(NET)
委
这个作者很懒,什么都没留下…
展开
-
C# 获取IE浏览器的HTML内容
先添加2个COM对象引用来控制IE浏览器Microsoft HTML Object LibraryMicrosoft Internet Controls原创 2014-03-06 09:35:41 · 4315 阅读 · 0 评论 -
C# 委托与事件的例子
今天在一个项目中看到委托与事件的使用,故重新整理一个简单易懂的例子,仅供参考而已。namespace DelegateAndEvent{ public delegate void delegateTest(int a);//定义一个委托 public delegate void delegateErr(Exception e);//定义一个报错委托 class原创 2014-06-12 17:26:07 · 843 阅读 · 0 评论 -
C# JSON字符串序列化与反序列化
使用JavaScriptSerializer类,适用Web平台C#将对象序列化成JSON字符串using System.Web.Script;using System.Web.Script.Serialization; JavaScriptSerializer serializer = new JavaScriptSerializer();原创 2014-05-20 16:18:21 · 2273 阅读 · 0 评论 -
MP4 FLASH等播放代码
1.我们在网页上看到的播放器无外乎WMP/RealOne/Macromedia Flash Player,其他的无非是面板不同,或者添加了其他控件,对于计算机上安装的一些播放器也都是编码和解码器的整合,其最核心的编码和解码技术是相同的。例如:网络上最流行的windows media流(asf,wma,wmv格式...),Real流(rm,rmvb...),还有MPEG系列编码格式(MP4/MP3格原创 2014-03-26 11:03:38 · 4623 阅读 · 0 评论 -
监听端口,输出HTML
使用监听功能,输出一个Web功能代码如下:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Net.Sockets;using System.Threading;namespace Listener{ class Progr原创 2014-03-31 15:30:21 · 1458 阅读 · 0 评论 -
C# 模拟键盘输入
引用了System.Windows.Forms DLL文件.System.Windows.Forms.SendKeys.Send("A");发射一个A信号。Ctrl = ^Shift = +Alt = %如,您想发送一个Ctrl+a (全选)到某个程序。则System.Windows.Forms.SendKeys.Send("^a");其他特殊按键如原创 2014-03-12 15:21:38 · 849 阅读 · 0 评论 -
C#获取不同分辨率
Rectangle rect = new Rectangle(); rect = Screen.GetWorkingArea(this); rect.Width;//分辨率宽度 rect.Height;//分辨率高度原创 2014-03-10 10:37:23 · 705 阅读 · 0 评论 -
C# 获取POST数据
在页面上获取POST的数据: var inputStream = Request.InputStream; var strLen = Convert.ToInt32(inputStream.Length); var strArr = new byte[strLen]; inputStream.Read原创 2014-03-12 16:46:06 · 2585 阅读 · 0 评论 -
C# 模拟鼠标事件
#region 模拟鼠标移动 [DllImport("user32")] public static extern void SetCursorPos(int x, int y); #endregion #region 模拟鼠标单击 private static readonly int MOUSEEVE原创 2014-03-06 09:05:06 · 904 阅读 · 0 评论 -
C# 鼠标钩子使用
using System;using System.Runtime.InteropServices;using System.Reflection;using System.Threading;using System.Windows.Forms;using System.Diagnostics;using System.Collections.Generic;using Syste原创 2014-03-06 17:16:50 · 937 阅读 · 0 评论 -
C# 键盘钩子的使用
using System;using System.Runtime.InteropServices;using System.Reflection;using System.Threading;using System.Windows.Forms;using System.Diagnostics;using System.Collections.Generic;name原创 2014-03-06 09:03:09 · 1432 阅读 · 2 评论 -
最火的.NET开源项目
综合类微软企业库 微软官方出品,是为了协助开发商解决企业级应用开发过程中所面临的一系列共性的问题, 如安全(Security)、日志(Logging)、数据访问(Data Access)、配置管理(Configuration Manage)等,并将这些广泛使用的应用程序块集成封装至一个叫企业库的程序包中CommonLibrary.net 一个帮助类库,包含了ActiveRecord,原创 2015-05-10 23:01:49 · 1803 阅读 · 0 评论