I have a custom task pane in a VSTO Outlook add-in which hosts a System.Windows.Forms.WebBrowser
control. All works well but in web forms DEL and BACKSPACE keys do not work. As if something eats those keys before they get to the browser.
Any pointers are appreciated.
EDIT:
It seems that clicking the WebBrowser
does not activate the parent task pane. If I add a simple TextBox
as a sibling to WebBrowser
and then click TextBox
with a mouse, task pane's title bar color changes indicating it got focus. Next if I click WebBrowser
, Del and Backspace start working.
If I remove focus from task pane and get back to it by clicking WebBrowser
, task pane does not receive focus (title bar remains painted with unfocused color) and the Del and Backspace problem reoccurs.
Why is task pane unaware of browser receiving focus?