- 博客(9)
- 资源 (18)
- 收藏
- 关注
原创 js给onclick赋值,传参数
1)当方法没有参数时,赋值可以直接用onclick = 方法名 window.onload = function() { $('btnTest').onclick = test; } function test() { alert(val); }2)当方法有参数时,用onclick = 方法名(参数)时就有错了,需要在
2013-03-28 10:30:33 4189
原创 css tab选项卡
CSS tab 选项卡*{ padding:0px; margin:0px;}body{ text-align:center;font-size:12px;}.page{ width:600px; margin:10px auto; text-align:left; }/*内容模块 */.tab_mo{ border:1px solid #ccc; border-top:
2013-03-27 17:48:33 1060
原创 Web Service通过SoapHeader身份验证
VS2008经常卡住,比如切换到设计视图时会卡住几分钟,有时鼠标双击也时卡住几分钟,上网看到一个解决办法:把C:\Program Files\Common Files\Microsoft Shared\OFFICE12\Office Setup Controller\setup.exe删除或改名试了一下,有效了一阵子又不行了。后来下载安装了VS2008的SP1补丁VS90s
2013-03-22 14:58:34 5713
原创 IOC容器Unity 使用
依赖注入(Dependency Injection,DI),也叫控制反转(Inversion of Control,IoC)是一个重要的面向对象编程的法则用来削减程序的耦合问题,它把耦合从代码中移出去,放到统一的XML文件中,通过一个容器在需要的时候把这个依赖关系形成,即把需要的接口实现注入到需要它的类中,当需要换一个实现子类将会变成很简单(一般这样的对象都是实现于某种接口的),只要修改XML就可以,这样可以实现对象的热插拨(有点象USB接口)。Unity 是一个轻量级、可扩展的依赖注入容器,支持构造函数
2013-03-20 10:47:40 4843 1
原创 WinForm监控键盘鼠标
监控键盘:using System;using System.Runtime.InteropServices;using System.Windows.Forms;namespace WindowsFormsAppTest{ public class KeyboardHook { private const int WM_KEYDOWN = 0x10
2013-03-11 17:17:14 3743
原创 winform制作的精美时钟
参考了好多资料,终于做了一个winform时钟出来,效果图如下:1,首先在winfrom项目中添加了一个用户控件ClockControl,实现过程可见代码注释,代码如下:using System;using System.Collections.Generic;using System.ComponentModel;using System.Drawing;us
2013-03-08 17:02:26 6622 2
原创 c#图像灰度化、灰度反转、二值化
图像灰度化:将彩色图像转化成为灰度图像的过程成为图像的灰度化处理。彩色图像中的每个像素的颜色有R、G、B三个分量决定,而每个分量有255中值可取,这样一个像素点可以有1600多万(255*255*255)的颜色的变化范围。而灰度图像是R、G、B三个分量相同的一种特殊的彩色图像,其一个像素点的变化范围为255种,所以在数字图像处理种一般先将各种格式的图像转变成灰度图像以使后续的图像的计算量变得少
2013-03-05 09:55:25 8950 1
原创 颜色与图片存储原理(摘自网上资料)
三元色RGB概念:自然界中的所有颜色都可以由红、绿、蓝(R,G,B)组合而成。有的颜色含有红色成分多一些,如深红;有的含有红色成分少一些,如浅红。针对含有红色成分的多少,可以分成0到255共256个等级,0级表示不含红色成分;255级表示含有100%的红色成分。同样,绿色和蓝色也被分成256级。这种分级概念称为量化。这样,根据红、绿、蓝各种不同的组合我们就能表示出256×256×256,约16
2013-03-04 11:48:23 5384
原创 winform壁纸工具:为图片添加当月的日历并设为壁纸
这几天用winform做了一个设置壁纸的小工具, 为图片添加当月的日历并设为壁纸,可以手动设置壁纸,也可以定时设置壁纸,最主要的特点是在图片上生成当前月的日历信息。工具和桌面设置壁纸后的效果如下:在图片上画日历的类代码Calendar.cs如下:using System;using System.Collections.Generic;using System.Text
2013-03-01 06:16:07 1808
PL/SQL美化器规则文件,用于格式美化sql语句
2022-06-09
开源.NET FTP组件edtFTPnet.dll
2013-09-26
HTML解析工具Html Agility Pack v1.4.6
2013-09-18
文件比对工具WinMerge v2.14
2013-09-18
SQLite数据库管理工具SQLiteStudio 2.1.4
2013-09-18
.net程序反编译工具ILSpy 2.1
2013-09-18
读写Excel的组件npoi
2013-07-26
CnPlugin_1.5.4.rar
2013-04-16
winform制作的精美时钟
2013-03-08
winform 为图片添加当月的日历并设为壁纸
2013-02-28
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人