private void StartCapture() { IsBusy = true; stopRequested = false; UpdateControls(); lock (this) { CleanPictureBox(); } webpageCapture.CaptureDelay = (int)nudCaptureDelay.Value * 1000; webpageCapture.CapturePage(txtURL.Text, new Size((int)nudWebpageWidth.Value, (int)nudWebpageWidth.Value)); }