超不同凡响

2012年9月24日

C#多线程传递带参数的简易方法

摘要: 使用多线程传递参数在这里我给大家分享一个简单的方法,用lambda表达式例如下面的例子: private void button1_Click(object sender, EventArgs e) { int n = 8000; Thread t = new Thread(() => Jisuan(n)); t.Start(); } private void Jisuan(int n) { for (int i = 0; i < n; ... 阅读全文

posted @ 2012-09-24 18:00 超不同凡响 阅读(216) 评论(0) 推荐(0)

2012年7月29日

防注入限制错误次数登录

摘要: 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.Data.SqlClient;namespace WindowsFormsApplication1{ public partial class Form1 : Form { public Form... 阅读全文

posted @ 2012-07-29 18:40 超不同凡响 阅读(294) 评论(0) 推荐(0)

导航