Preventing Form Focus
-
Hi All My application (C#, Framework 1.1) running in the background. I am displaying a form in every five minutes. This form has only a hyperlink control. To show myForm I am using myForm.ShowDialog(); When this form is displayed, it grabs the focus, and I loose the focus if I am working in another application, say, MS-Word. My form has the following properties set. myForm.TopMost = false; myForm.FormBorderStyle = FormBorderStyle.None; How can prevent this from happening? Can anybody help me on this? Thanks Muthu.
-
Hi All My application (C#, Framework 1.1) running in the background. I am displaying a form in every five minutes. This form has only a hyperlink control. To show myForm I am using myForm.ShowDialog(); When this form is displayed, it grabs the focus, and I loose the focus if I am working in another application, say, MS-Word. My form has the following properties set. myForm.TopMost = false; myForm.FormBorderStyle = FormBorderStyle.None; How can prevent this from happening? Can anybody help me on this? Thanks Muthu.
have seen this before... http://www.codeproject.com/script/comments/forums.asp?msg=1821173&forumid=1649&XtraIDs=1649&searchkw=topmost&sd=7+Oct+2006&ed=5+Jan+2007&stype=1#xx1821173xx[^] :)
Luc Pattyn
-
have seen this before... http://www.codeproject.com/script/comments/forums.asp?msg=1821173&forumid=1649&XtraIDs=1649&searchkw=topmost&sd=7+Oct+2006&ed=5+Jan+2007&stype=1#xx1821173xx[^] :)
Luc Pattyn
-
Hi, My issue is I want to show the form..I don't want to hide it. When I am showing that form..it should not get any focus. The work being done in other applications should not be interrupted. Thanks Muthu.
Why are you using ShowDialog() instead of Show() ? ShowDialog() makes the form the top window for that application (as with modal dialogs, the onces you can not ignore inside an application), whereas Show() is used normally for forms and for modeless dialogs (the ones you can leave open but still allow you to operate other windows). :)
Luc Pattyn
-
Why are you using ShowDialog() instead of Show() ? ShowDialog() makes the form the top window for that application (as with modal dialogs, the onces you can not ignore inside an application), whereas Show() is used normally for forms and for modeless dialogs (the ones you can leave open but still allow you to operate other windows). :)
Luc Pattyn