private void btnScan_Click(object sender, EventArgs e) { timer.Stop(); lvIPList.Items.Clear(); results = scanner.BeginScan(ipFrom.IPAddress, ipTo.IPAddress); timer.Interval = 1000; timer.Tick += new EventHandler(timer_Tick); timer.Start(); }
private void startScanIP() { timer.Stop(); lvIPList.Items.Clear(); results = scanner.BeginScan(ipFrom.IPAddress, ipTo.IPAddress); timer.Interval = 1000; timer.Tick += new EventHandler(timer_Tick); timer.Start(); }