Hi,
I am working on a program that uses the browser control.
When the user holds Ctrl+N, a new internet explorer
browser opens. How can I avoid this? I don't want to
let the user have another web browser.
Thanks.
You are correct in that to catch a combination of keys, you have to use FormKeyDown. Have you tried this in that section of code?
Code:
if (Shift.Contains(ssCtrl) && Key == 'N')
{
// do something
}
James P. Cottingham
When a man sits with a pretty girl for an hour, it seems like a minute. But let him sit on a hot stove for a minute and it's longer than any hour. That's relativity. [tab][tab]Albert Einstein explaining his Theory of Relativity to a group of journalists.
Yes, I tried it.
The problem is that there is a button and a browser in the
window of my application. If the button has the focus, it
works, the event is caught. If the browser has the focus
the event is not caught and a new window of internet
explorer is opened.
Didn't find a solution yet...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.