c#中使用多线程
c#中使用多线程(图)
本节把Form主线程从其他线程分离出来,实现数据从线程的传入传出
代码如下:
From1.cs代码如下:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
using System.Threading;
namespace student
{
/// <summary>
/// http://blog.csdn.net/iuhxq
/// </summary>
public class Form1 : System.Windows.Forms.Form
{
private System.Windows.Forms.Button button1;
private System.Windows.Forms.Button button2;
private System.Windows.Forms.Button button3;
private Class1 c;
private System.Windows.Forms.ListView listView1;
private System.Windows.Forms.ColumnHeader columnHeader1;
private System.Windows.Forms.ColumnHeader columnHeader2;
/// <summary>
/// 必需的设计器变量。
/// </summary>
private System.ComponentModel.Container components = null;
public Form1()
{
//
// Windows 窗体设计器支持所必需的
//
InitializeComponent();
//
// TODO: 在 InitializeComponent 调用后添加任何构造函数代码
//
}
相关新闻>>
- 发表评论
-
- 最新评论 进入详细评论页>>
今日头条
更多>>您可能感兴趣的文章
- winform下通过webclient使用非流方式上传(post)数据和
- Asp.net MVC源码分析--Model Validation(Client端)实现(2)
- 教你如何来恢复一个丢失的数据文件
- ASP.NET数据格式的Format--DataFormatString
- asp.net 六大内置对象(2)
- 谈.Net委托与线程——创建无阻塞的异步调用(一
- 微软ASP.NET站点部署指南(11):部署SQL Server数据
- Pro ASP.NET MVC 3 Framework学习笔记之九
- asp.net js模拟Button点击事件
- MVC中一个表单实现多个提交按钮(一个action搞定