//
//
//
private void button1_Click( object sender , EventArgs e)
{
button1 . Enabled = false ;
Thread . Sleep( 2000 );
richTextBox1 . AppendText( Environment . TickCount . ToString() + "\r\n" );
Application . DoEvents(); //
button1 . Enabled = true ;
}