I have form, where only component on it is webbrowser control. How to add one own shortcut to it (to raise another form)? It needs keys hook, or there is other way?
Printable View
I have form, where only component on it is webbrowser control. How to add one own shortcut to it (to raise another form)? It needs keys hook, or there is other way?
What exactly are you trying to achieve? You want to add a link to the page in your WebBrowser control to open another form in your app? Can you explain a bit more?
I want to invoke sub. when user use shortcut. For eg-> "crtl + o" should invoke sub which open next form.
Ok, you want to catch a keyboard input from the user from anywhere within your program, as long as your program has focus. Hmm... not a bad question.
I think you just do it through the Menu-bar control. As long as the form has a Menu-bar, you can assign keyboard shortcuts to items via the properties.
But the only one component is webbrowser ;) There can't be any other controls.
Set Visibility to False