button1.Click += delegate { MessageBox.Show("Button Clicked"); };Instead of ...
button1.Click += new EventHandler(button1_Click); void button1_Click(Object sender, EventArgs e) { MessageBox.Show("Button Clicked"); }There is a great article by Jeffrey Richter which shows the new syntax options available when dealing with delegates. This is a good example of MS increasing developer productivity with C# through refinment of the language syntax.