日期:2014-05-17 浏览次数:21087 次
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;
using System.Text.RegularExpressions;
using System.Web;
using System.IO;
using System.IO.Compression;
using System.Threading;
namespace login3Dezu
{
public partial class Form1 : Form
{
CookieContainer cc = new CookieContainer();
string formhash = null;
BackgroundWorker bw = new BackgroundWorker();
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
bw.WorkerReportsProgress = true;
bw.WorkerSupportsCancellation = true;
bw.DoWork += new DoWorkEventHandler(bw_DoWork);
bw.ProgressChanged += new ProgressChangedEventHandler(bw_ProgressChanged);
bw.RunWorkerAsync();
}
void bw_DoWork(object sender, DoWorkEventArgs e)
{
while (!bw.CancellationPending)
{
StringBuilder sb = new StringBuilder();
Encoding code = Encoding.ASCII;
bw.ReportProgress(1,"当前日期:"+DateTime.N