Click here to Skip to main content
Click here to Skip to main content
Alternative Tip/Trick

Tagged as

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

, 25 May 2010 CPOL
Rate this:
Please Sign up or sign in to vote.
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 --
| Advertise | Privacy | Terms of Use | Mobile
Web04 | 2.8.141223.1 | Last Updated 26 May 2010
Article Copyright 2010 by tonyt
Everything else Copyright © CodeProject, 1999-2014
Layout: fixed | fluid