So I'm writing a VB.NET Windows Form application and I have a WebBrowswer control in it. When the user presses CTRL + D I would like for the debug information to show, no matter what control is in focus.
Currently, I have this working for when the focus is on the form; however, it doesn't work when focus is on the WebBrowser control (such as when they are entering information into a text box).
I looked up global hotkeys and found a couple things on that, but I don't think that's what I'm looking for since, from what I understand, they work when even the application itself is not in focus and works on a global OS scale with the application.
I've also tried to do a few little things like try to force focus to the form when something else happens, but it doesn't always work.
Is this possible? Thanks for any help.
EDIT:
The answer to this question can be found here.
Then, in combination with this answer the I got the exact result I'm looking for (since I have a settings form that pops up and I don't want to trigger it in that case).