Click here to Skip to main content
12,399,362 members (58,080 online)
Click here to Skip to main content
Add your own
alternative version

Tagged as

Stats

5.8K views
1 bookmarked
Posted

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

, 24 May 2010 CPOL
dialog.Owner = this;dialog.Show();// ;}

Alternatives

Members may post updates or alternatives to this current article in order to show different approaches or add new features.

24 May 2010
Adrian Pasik
2 alternatives  
We all know that .ShowDialog() is great but sometimes You want to show user some window and keep program running. (.ShowDialog() freezes code execution in method as we all know) Let's say You have this scenario that You want to have form that will not loose focus but at the same time You...
25 May 2010
tonyt
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

radioman.lt
Software Developer
Lithuania Lithuania
No Biography provided

| | Privacy | Terms of Use | Mobile
Web02 | 2.8.160721.1 | Last Updated 24 May 2010
Article Copyright 2010 by radioman.lt
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid