Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles
(untagged)

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

0.00/5 (No votes)
25 May 2010 1  
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();

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here