
c#
woshidaniu
系统开发,信息安全
展开
-
在vs2010 .net 4.0 引用dll .net 2.0
在vs2010 .net 4.0 引用dll .net 2.0 出现Mixed mode assembly is built against version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 runtime without additional configuration 的包错,查了很多资料,原创 2011-12-11 17:16:27 · 2026 阅读 · 0 评论 -
c# 常用固定常量
/// /// Window API enumerations /// #region Peek Message Flags public enum PeekMessageFlags { PM_NOREMOVE = 0, PM_REMOVE = 1, PM_NOYIELD = 2原创 2015-03-03 21:40:35 · 3084 阅读 · 1 评论 -
C#自定义PropertyGrid属性
最近用到了PropertyGrid,原来从来没用到过,拿在手里,一头雾水,经过一段时间研究后,大概理解了Property的使用方法,下面仔细剖析一下。PropertyGrid控件就是Visual Studio开发工具里面的属性浏览器,我们在VS里面可以通过属性浏览器查看,修改控件的属性,并主要通过使用反射来检索项目的属性。一.如何显示属性1)普通显示在PropertyGrid中显示转载 2014-12-29 00:50:28 · 1460 阅读 · 0 评论 -
c# 模拟鼠标点击
const int MOUSEEVENTF_MOVE = 0x0001; //移动鼠标 const int MOUSEEVENTF_LEFTDOWN = 0x0002; //模拟鼠标左键按下 const int MOUSEEVENTF_LEFTUP = 0x0004; //模拟鼠标左键抬起 const i原创 2015-01-29 15:14:37 · 3301 阅读 · 0 评论 -
今天写了个c#下listview的排序,若果显示的量小,用这个感觉很方便。mysql的数据库
private int g_nColumn = 0; private int g_nSort = 0; private string[] g_column = { "id", "username", "pwd", "t1", "t2", "t3", "t4", "t5", "t" }; private void listView1_Colu原创 2014-09-21 14:30:44 · 622 阅读 · 0 评论 -
css menu drop
DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">html xmlns="http://www.w3.org/1999/xhtml">head>meta http-equiv="Content转载 2014-04-09 21:34:34 · 596 阅读 · 0 评论 -
SQL Server 存储过程(hoojo)
SQL Server 存储过程Transact-SQL中的存储过程,非常类似于Java语言中的方法,它可以重复调用。当存储过程执行一次后,可以将语句缓存中,这样下次执行的时候直接使用缓存中的语句。这样就可以提高存储过程的性能。Ø 存储过程的概念 存储过程Procedure是一组为了完成特定功能的SQL语句集合,经编译后存储在数据库中,用户通过指定存储过程的名称并给出参数来执行转载 2014-03-26 00:28:57 · 452 阅读 · 0 评论 -
C# 使用sqlite
先下载ADO.NET2.0 Provider for SQLite。下载binaries zip版就可以了。下载完后解压缩,可以在bin目录下找到System.Data.SQLite.DLL。在vs2008中用Add Reference(添加引用)功能把System.Data.SQLite.DLL加到工程里就可以了。运行下面代码试试:string datasource = "e:/tmp/te转载 2014-05-05 00:32:01 · 447 阅读 · 0 评论 -
C# md5 hash值求取 添加 system.web的引用
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Threading.Tasks;using原创 2014-03-28 13:01:19 · 1004 阅读 · 0 评论 -
C# 获取xlsx表名
protected void Button1_Click(object sender, EventArgs e) { string strConnection1 = "Provider=Microsoft.ACE.OLEDB.12.0;Extended Properties=Excel 12.0;Data Source="; string strP原创 2013-12-08 13:23:17 · 1166 阅读 · 0 评论 -
c#中 uint--byte[]--char[]--string相互转换汇总
c#中 uint--byte[]--char[]--string相互转换汇总 uint-----byte[]-----char[]-----string 在在做一些互操作的时候往往需要一些类型的相互转换,比如用c#访问win32api的时候往往需要向api中传入DWORD参数 即:uint参数这些数值所表示的数据在实际的应用中可能需要以字符的形式显示,但是c#对转载 2012-05-21 00:13:15 · 447 阅读 · 0 评论 -
c# webbrowser使用ie内核版本的问题
在使用webbrowser的时候发现加载html5的页面会出现很大的问题,显示各种错乱.抓包才发现默认使用的是低版本的ie内核.需要在注册表中修改才能恢复正常注册表位置对于32位程序HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\MAIN\FeatureControl\FEATURE_BROWSER_EMULA原创 2017-07-16 10:37:44 · 2493 阅读 · 1 评论