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.Threading;
using System.Net;
using System.Net.NetworkInformation;
using System.Collections;
namespace IpSearch
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
//定义一个线程
private Thread th;
//本来是想写个进度条的 后来想想还是算了。
int intStart = 0;
int intEnd = 0;
int k = 0;
//定义一个存放IP的ArrayList
ArrayList ip = new ArrayList();
//IP短前面的字符串 比如:192.168.1
string ipBefore=null;
//定义一个线程委托
private delegate string returnStrDelegate();
//点击开始或者暂停按钮
private void btnStopOrBegin_Click(object sender, EventArgs e)
{
//判断如果按钮是开始
if (btnStopOrBegin.Text == "开始")
{
//清空listBox值
lvw_Show.Items.Clear();
//定义开始输入IP为灰色
txtBegin.Enabled = false;