|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Bring my FORM to front??Hi,
I have an application where I've implemented a global hotkey, so no matter what other application is in front (have focus), my app will react when the key combination is pressed. This works fine. My problem is now that the form I want to show, does not come to the front. I've tried to set Topmost to true, but then the form doesn't recieve focus. How can I bring my form to front and give it focus eventhough another applicetion (like Outlook) is in front (have focus)?? Thanks!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! :o) M O J OWon't BringToFront or Focus do this?
Thanks, Seth Rowe M O J O wrote: Show quoteHide quote > Hi, > > I have an application where I've implemented a global hotkey, so no matter > what other application is in front (have focus), my app will react when the > key combination is pressed. This works fine. > > My problem is now that the form I want to show, does not come to the front. > > I've tried to set Topmost to true, but then the form doesn't recieve focus. > > How can I bring my form to front and give it focus eventhough another > applicetion (like Outlook) is in front (have focus)?? > > Thanks!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! > > :o) > > M O J O "M O J O" <M***@discussions.microsoft.com> schrieb: P/invoke 'AttachThreadInput' + 'SetForegroundWindow'.> I have an application where I've implemented a global hotkey, so no matter > what other application is in front (have focus), my app will react when > the > key combination is pressed. This works fine. > > My problem is now that the form I want to show, does not come to the > front. -- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://dotnet.mvps.org/dotnet/faqs/> Hi Herfried,
Thanks for once again helping me out here! :o) M O J OShow quoteHide quote "Herfried K. Wagner [MVP]" wrote: > "M O J O" <M***@discussions.microsoft.com> schrieb: > > I have an application where I've implemented a global hotkey, so no matter > > what other application is in front (have focus), my app will react when > > the > > key combination is pressed. This works fine. > > > > My problem is now that the form I want to show, does not come to the > > front. > > P/invoke 'AttachThreadInput' + 'SetForegroundWindow'. > > -- > M S Herfried K. Wagner > M V P <URL:http://dotnet.mvps.org/> > V B <URL:http://dotnet.mvps.org/dotnet/faqs/> > > |
|||||||||||||||||||||||