public partial class Form1 : Form { public Form1() { InitializeComponent(); } private Int32 clickCount = 0; private void button1_Click(object sender, EventArgs e) { Int32 clickCountBefore = this.clickCount; for (Int32 i = 0; i < 10; i++) { Thread.Sleep(100); Application.DoEvents(); } Int32 clickCountAfter = this.clickCount; if (clickCountAfter != clickCountBefore) { this.listBox1.Items.Insert(0, "Ouch..."); } this.clickCount++; this.listBox1.Items.Insert(0, this.clickCount.ToString()); } }