码迷,mamicode.com
首页 >  
搜索关键字:sender    ( 3039个结果
KindEditor的内容以Word的形式导出
//导出按钮protected void btn_Export_Click(object sender, EventArgs e) { Model.article art = new BLL.Common().GetModel(this.id); WriteHtml(art.content);//a...
分类:其他好文   时间:2014-06-07 03:04:09    阅读次数:299
MD5加密算法
一、引用命名空间 using System.Security.Cryptography; 二、核心代码 private void button1_Click(object sender, EventArgs e)         {             MD5 md5 = new MD5CryptoServiceProvider();             byte[] da...
分类:其他好文   时间:2014-06-05 09:56:00    阅读次数:287
C#winform中OpenFileDialog的用法
private void btnOpenFileDialog_Click(object sender, EventArgs e) { OpenFileDialog oFD = new OpenFileDialog(); oFD.Title =...
分类:Windows程序   时间:2014-06-02 21:47:55    阅读次数:411
新手们的GDI+绘制方格
//绘制panel控件触发的事件//不可在窗体加载时绘制方格 private void panel1_Paint(object sender, PaintEventArgs e) { int rowNum = 12;//行数 int colNum = 15;//列数; Pen pen = new P...
分类:其他好文   时间:2014-06-02 15:55:03    阅读次数:287
GCD异步下载网页功能
在不使用GCD下载情况:-(void)btnPress:(id)sender{self.labContent.text=@"";self.indicator.hidden=NO;[self.indicatorstartAnimating];NSOperationQueue*que=[[NSOperationQueuealloc]init];NSInvocationOperation*op=[[NSInvocationOperationalloc]initWithTarget:selfsele..
分类:Web程序   时间:2014-06-02 14:27:37    阅读次数:265
WPF: 旋转Thumb后,DragDelta移动距离出错的解决
当Thumb跟随Grid旋转90度后,拖拽控件时会飞掉。 private void Thumb_DragDelta(object sender, System.Windows.Controls.Primitives.DragD...
分类:移动开发   时间:2014-05-31 12:36:30    阅读次数:337
C# WinForm拖入文件到窗体,得到文件路径
private void textBox1_DragDrop(object sender, DragEventArgs e) { if (e.Data.GetDataPresent(DataFormats.FileDrop)) {...
分类:Windows程序   时间:2014-05-31 03:20:59    阅读次数:753
aspx利用cookie值来停止silverlight中的计时器
一.silverlight与silverlight中可以利用委托(delegate)来刷新frame.Refresh()1.在子类中定义委托捕捉关闭事件按钮 1 public delegate void onCloseClick(object sender, RoutedEventA...
分类:Web程序   时间:2014-05-30 07:55:13    阅读次数:376
C# 递归
调用: BLL.Area bll = new BLL.Area();//实例化BLL对象 DataTable dt = null; private void FormArea_Load(object sender, EventArgs e) {...
分类:其他好文   时间:2014-05-30 01:52:28    阅读次数:249
Delphi 注册快捷键
ShortCutToText , TextToShortCut 需 uses Menus;typeTForm1 = class(TForm)HotKey1: THotKey;Button1: TButton;procedure Button1Click(Sender: TObject);proced...
分类:其他好文   时间:2014-05-29 16:52:29    阅读次数:322
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!