Windows Forms MyBase.New() constructor.

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am developing an Outlook Addin. I have tracked a problem down to MyBase.New() in the Windows Form class constructor

The situation: Outlook with Word as the default email editor. Clicking a toolbar button in Outlook email inspector displays my Windows Form. (Working when Outlook is default email editor

When Word is being used as the default email editor the form is not displayed although the button click event is called

Can anyone shed some light as to why this is the case and if there may be some way to overcome this problem
 
Upon further debugging... I have determined the line of code that is causing problems located in InitializeComponent() subroutine

Me.ctlWB = New AxSHDocVw.AxWebBrowse

I should mention that my form has a WebBrowser conponent on it.
 
Back
Top