随笔分类 -  dotnet

NPOI 添加行
摘要:IRow sourceRow = sheet1.GetRow(3); for (int i = 0; i < dt.Rows.Count-1; i++) { IRow row = sheet1.CreateRow(4 + i); row.Height = sourceRow.Height; for (int m = sourceRow.FirstCellNum;... 阅读全文

posted @ 2013-08-03 22:15 gwazy 阅读(6580) 评论(1) 推荐(0)

c# 操作excel 替代方案
摘要:一直使用excel com 接口进行excel 操作,最近一次因为权限折腾了个够呛,果断放弃,使用NPOIFileStream file = new FileStream(url, FileMode.Open, FileAccess.Read); HSSFWorkbook hssfworkbook = new HSSFWorkbook(file); HSSFSheet sheet1 = hssfworkbook.GetSheet("Sheet1") as HSSFSheet; sheet1.GetRow(1).Cells[5]... 阅读全文

posted @ 2013-08-02 17:36 gwazy 阅读(594) 评论(0) 推荐(0)

简单的文件版本更新
摘要:using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using System.Net;namespace WinUpVer{ public partial class FrmMain : Form { public FrmMain() { ... 阅读全文

posted @ 2013-06-20 18:07 gwazy 阅读(315) 评论(0) 推荐(0)

c#实现锁屏及禁止键盘和鼠标
摘要:1.要实现锁定系统不让别人用,可以调用系统锁定API函数来实现//引入API函数 [DllImport("user32 ")] public static extern bool LockWorkStation();//这个是调用windows的系统锁定在需要的时候直接写LockWorkStation();就可以啦!不信试试看!2.API函数锁定键盘及鼠标[DllImport("user32.dll")] static extern void BlockInput(bool Block);需要的时候就直接写:BlockInput(true);//锁定鼠标 阅读全文

posted @ 2012-10-20 18:37 gwazy 阅读(3581) 评论(0) 推荐(0)

c# 摄像头截图
摘要:using System;using System.Runtime.InteropServices;using System.Drawing;using System.Drawing.Imaging;namespace Video{/// <summary>/// 一个控制摄像头的类/// </summary>public class VideoWork{private const int WM_USER = 0x400;private const int WS_CHILD = 0x40000000;private const int WS_VISIBLE = 0x10 阅读全文

posted @ 2012-10-08 19:04 gwazy 阅读(917) 评论(0) 推荐(0)

微软语音提示
摘要:SpVoice Voice = new SpVoice(); SpeechVoiceSpeakFlags SpFlags = SpeechVoiceSpeakFlags.SVSFlagsAsync; Voice.Speak("欢迎您!", SpFlags); 阅读全文

posted @ 2012-10-07 15:38 gwazy 阅读(216) 评论(0) 推荐(0)

c# 线程操作
摘要:http://www.cnblogs.com/miniwiki/tag/C%23%20%E7%BA%BF%E7%A8%8B/ 阅读全文

posted @ 2012-10-06 11:33 gwazy 阅读(163) 评论(0) 推荐(0)

操作excel 不错的类库
摘要:http://tonyqus.sinaapp.com/ 阅读全文

posted @ 2012-01-12 17:41 gwazy 阅读(230) 评论(0) 推荐(0)

ASP.NET MVC 教程
摘要:http://msdn.microsoft.com/zh-cn/dd327597.aspx http://hyipaying.com/article/asp.net/20110105/asp.net-mvc3-instance-add-update-delete2.html 阅读全文

posted @ 2011-01-14 16:44 gwazy 阅读(302) 评论(0) 推荐(0)

Visual studio 2010 中文版正式版无法安装Silverlight4 Tools的解决办法
摘要:那么如何在中文vs2010上安装英文的silverlight4 tools呢?我就不说那么专业的什么修改安装包,修改什么什么配置了,我找了个最简单有效的办法告诉大家,如下:打开注册表命令:regedit打开节点:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\10.0\Setup\VS\BuildNumber在此处增加一个"字符串值",输入名称... 阅读全文

posted @ 2010-06-30 14:47 gwazy 阅读(225) 评论(0) 推荐(0)

vs2010 使用 Fixedsys 字体
摘要:Fixedsys是我比较喜欢的字体。http://www.fixedsysexcelsior.com下载后安装好,重新打开 vs2010 选择就行了。最合适得是12号字体,低于12号字体有点不全。 阅读全文

posted @ 2010-04-30 14:27 gwazy 阅读(2017) 评论(1) 推荐(0)

一个多线程协助工作
摘要:[代码][代码][代码] 阅读全文

posted @ 2009-11-05 16:40 gwazy 阅读(285) 评论(0) 推荐(0)

vs 2010beta2 the operation could not be completed
摘要:And here´s the solution:I started Windows Update and installed KB951847 (some .NET update), then Restart, again Windows Update, two other .NET updates installed, again Restart and then open VS 20... 阅读全文

posted @ 2009-10-26 20:43 gwazy 阅读(1329) 评论(3) 推荐(0)

htmlTable To jpeg
摘要:[代码][代码] 阅读全文

posted @ 2009-10-15 17:52 gwazy 阅读(215) 评论(0) 推荐(0)

(C#)利用反射动态调用类成员
摘要:使用反射动态调用类成员,需要Type类的一个方法:InvokeMember。对该方法的声明如下(摘抄于MSDN): public object InvokeMember( string name, BindingFlags invokeAttr, Binder binder, object target, object[] args ); 参数 name String,它包含要调用的构造... 阅读全文

posted @ 2009-08-20 17:10 gwazy 阅读(455) 评论(0) 推荐(0)

在 win7rc 版下成功安装完 vs2010 beta1
摘要:我机子比较差 赛扬540+1.2G内存 跑vs2008 还差不多,vs2010 明显感觉差很多了。 阅读全文

posted @ 2009-05-21 12:14 gwazy 阅读(263) 评论(0) 推荐(0)

Silverlight 上传程序
摘要:Handler.ashx[代码][代码][代码] 阅读全文

posted @ 2009-04-02 09:56 gwazy 阅读(1066) 评论(0) 推荐(0)

webservice 上传图片
摘要:[代码]CS 应用程序调用[代码] 阅读全文

posted @ 2009-04-02 09:48 gwazy 阅读(730) 评论(1) 推荐(0)

图像压缩
摘要:[代码] 阅读全文

posted @ 2008-12-10 09:45 gwazy 阅读(206) 评论(0) 推荐(0)

自增列的一种方法收藏
摘要:Code Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> ' /> 阅读全文

posted @ 2008-11-11 11:59 gwazy 阅读(195) 评论(0) 推荐(0)

导航