65.9K
CodeProject is changing. Read more.
Home

How to prevent Form from loosing focus (in the application)

emptyStarIconemptyStarIconemptyStarIconemptyStarIconemptyStarIcon

0/5 (0 vote)

May 26, 2010

CPOL
viewsIcon

6418

Form f = new Form(); f.Shown += delegate(object s, EventArgs e) { MessageBox.Show("Here you go!"); } f.ShowDialog();



   Form f = new Form();
   f.Shown += delegate(object s, EventArgs e)
   {
     MessageBox.Show("Here you go!");
   }
   f.ShowDialog();