|
Rank: Member Groups: Member
Joined: 6/1/2015 Posts: 16
|
The WebBrowser WinForms control is great, very impressed by it.
However I am using WebBrowser on one type of Child Form in an MDI application. Imagine 'Notepad' and 'Chrome 'as two separate MDIChild forms within one MDIParent.
If I allocate a .Shortcut to the WebBrowser within the Child form it works fine in that browser child, but the shortcut also fires in the other, totally unrelated, child. This is not correct behaviour, the other child form does not have a WebBrowser control on it at all so should not in any way be affected by the WebBrowser shortcuts. The shortcuts should only be valid when that WebBrowser child has focus.
Also WebBrowser.Keycode.Add (=107) is strangely missing for the '+' keypad key! Obviously I just typed 107 instead, but I suspect it got lost sometime in the past due to Add being a .Net keyword. Maybe Keycode.AddKey would be better than having nothing at all!
Thanks
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
Hi, Thanks for letting us know about the Add key. We will add that in our next release. As to the Shortcut, can you check the sender argument of the event handler? It has to come out from a WebView. You can check if that's the original WebView. It's possible that the event handlers have been hooked up in both window thus is fired in both windows. In that case all you need to do is to make sure that it is only hooked up in the window in which you want the event to be fired. If that's not the problem, please try to isolate the problem into a test project and send us the test project. Once we have that we will be happy to take a look. See here for more information on how to send us test project: http://www.essentialobjects.com/forum/test_project.aspxThanks!
|
|
Rank: Member Groups: Member
Joined: 6/1/2015 Posts: 16
|
I have emailed you a very simple sample.
The MDI Parent has 2 forms open within it, Form1 has a WebBrowser/WebView and Form2 just a textbox.
Follow this test procedure:
1) Select Form2, type in the text box, all is well.
2) Select Form1, click the button to add a spacebar shortcut to E0.WebBrowser on Form1
3) Select Form2, type space in the text box. You will see the error as spacebar no longer works.
4) Close Form1. Form2 text box then instantly starts working normally again.
Clearly the shortcuts are incorrectly being applied to all forms within the MDIParent. This is definitely incorrect behaviour, the shortcut should only apply to the single MDIchild, Form1.
|
|
Rank: Member Groups: Member
Joined: 6/1/2015 Posts: 16
|
Were you able to test the sample submitted?
thanks
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
Hi,
Yes. We did receive the test project and we were able to identify and fix the problem. We will provide you a test build with the fix as soon as possible.
Thanks!
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
Hi,
We have posted a new build that should fix this problem. Please see your private message for more details.
Thanks!
|
|
Rank: Member Groups: Member
Joined: 6/1/2015 Posts: 16
|
Yes the test build fixes the MDI issue. Many thanks.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
Thanks for confirming the fix!
|
|