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

Tagged as

Go to top

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

, 24 May 2010
Rate this:
Please Sign up or sign in to vote.
dialog.Owner = this;dialog.Show();// ;}
dialog.Owner = this;
dialog.Show();

 
// ;}

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

Comments and Discussions

 
GeneralI think Adrian wanted the "dialog" to be modal. dialog show(... Pinmemberjohannesnestler24-May-10 23:02 
I think Adrian wanted the "dialog" to be modal. dialog show(owner) is not the same! Anyway, whenever I see a solution like Adrian's it's a hint for a poor application design.

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

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