private void btnRecord_Click(object sender, EventArgs e) { btnRecord.Enabled = false; btnStop.Enabled = true; btnViewEvents.Enabled = false; browser.Record(logger); Application.DoEvents(); }