Form f = new Form(); f.Shown += delegate(object s, EventArgs e) { MessageBox.Show("Here you go!"); } f.ShowDialog();
This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)