//导出按钮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
一、引用命名空间
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
private void btnOpenFileDialog_Click(object sender,
EventArgs e) { OpenFileDialog oFD = new OpenFileDialog(); oFD.Title =...
//绘制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下载情况:-(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
当Thumb跟随Grid旋转90度后,拖拽控件时会飞掉。 private void
Thumb_DragDelta(object sender, System.Windows.Controls.Primitives.DragD...
分类:
移动开发 时间:
2014-05-31 12:36:30
阅读次数:
337
private void textBox1_DragDrop(object sender,
DragEventArgs e) { if (e.Data.GetDataPresent(DataFormats.FileDrop)) {...
一.silverlight与silverlight中可以利用委托(delegate)来刷新frame.Refresh()1.在子类中定义委托捕捉关闭事件按钮 1
public delegate void onCloseClick(object sender, RoutedEventA...
分类:
Web程序 时间:
2014-05-30 07:55:13
阅读次数:
376
调用: 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
ShortCutToText , TextToShortCut 需 uses
Menus;typeTForm1 = class(TForm)HotKey1: THotKey;Button1: TButton;procedure
Button1Click(Sender: TObject);proced...
分类:
其他好文 时间:
2014-05-29 16:52:29
阅读次数:
322