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)

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

// ;}


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author
Software Developer
Lithuania Lithuania
No Biography provided

Comments and Discussions

GeneralI think Adrian wanted the "dialog" to be modal. dialog show(... Pinmemberjohannesnestler25-May-10 0: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 | Terms of Use | Mobile
Web04 | 2.8.150331.1 | Last Updated 24 May 2010
Article Copyright 2010 by
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid