Click here to Skip to main content
14,548,337 members

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

Rate this:
0.00 (No votes)
Please Sign up or sign in to vote.
0.00 (No votes)
25 May 2010CPOL
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, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

tonyt
United States United States
No Biography provided

Comments and Discussions

 
-- There are no messages in this forum --
Alternative
Tip/Trick
Posted 25 May 2010

Tagged as

Stats

5.6K views