C
CyberEeyor
I'm trying to create an Outlook adding for 2010 beta using VB. The addin
shows up in the list of addins and I get the "Mail Checker addin created" and
the "Mail Checker addin deleted" messages at the appropriate times (see code
below), but I never get any of the messages in the IDTExtensibility2
subroutines. I would guess that this means that Outlook 2010 beta is not
"connecting" to my addin.
I checked all the example code that I could find and I seem to have
everything I need. I've also tried both Visual Studio 2008 and Visual Studio
2010 beta. Is there something I'm missing? Does Outlook 2010 beta not support
addins yet?
I wll be happy to try any and all suggestions.
Thanks
Cybereeyor
Imports Outlook = Microsoft.Office.Interop.Outlook
Imports System.Runtime.InteropServices
Imports System.Reflection
Imports Extensibility
Public Class MailCheckerAddin
Implements IDTExtensibility2
Private Sub ThisAddIn_Startup(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Me.Startup
MsgBox("Mail Checker addin created")
End Sub
Private Sub ThisAddIn_Shutdown(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Me.Shutdown
MsgBox("Mail Checker addin deleted")
End Sub
Private Sub IDTExtensibility2_OnAddInsUpdate(ByRef custom As System.Array)
Implements IDTExtensibility2.OnAddInsUpdate
MsgBox("Mail Checker notified that add-in have changed.")
End Sub
Private Sub IDTExtensibility2_OnBeginShutdown(ByRef custom As System.Array)
Implements IDTExtensibility2.OnBeginShutdown
End Sub
Private Sub IDTExtensibility2_OnConnection(ByVal Application As Object,
ByVal ConnectMode As ext_ConnectMode, _
ByVal AddInInst
As Object, ByRef custom As System.Array) _
Implements
IDTExtensibility2.OnConnection
MsgBox("Connecting to Mailcheker addin")
End Sub
Private Sub IDTExtensibility2_OnDisconnection(ByVal RemoveMode As
ext_DisconnectMode, _
ByRef custom
As System.Array) Implements IDTExtensibility2.OnDisconnection
End Sub
Private Sub IDTExtensibility2_OnStartupComplete(ByRef custom As
System.Array) _
Implements IDTExtensibility2.OnStartupComplete
Msgbox("Mailchecker Startup complete")
End Sub
End Class
shows up in the list of addins and I get the "Mail Checker addin created" and
the "Mail Checker addin deleted" messages at the appropriate times (see code
below), but I never get any of the messages in the IDTExtensibility2
subroutines. I would guess that this means that Outlook 2010 beta is not
"connecting" to my addin.
I checked all the example code that I could find and I seem to have
everything I need. I've also tried both Visual Studio 2008 and Visual Studio
2010 beta. Is there something I'm missing? Does Outlook 2010 beta not support
addins yet?
I wll be happy to try any and all suggestions.
Thanks
Cybereeyor
Imports Outlook = Microsoft.Office.Interop.Outlook
Imports System.Runtime.InteropServices
Imports System.Reflection
Imports Extensibility
Public Class MailCheckerAddin
Implements IDTExtensibility2
Private Sub ThisAddIn_Startup(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Me.Startup
MsgBox("Mail Checker addin created")
End Sub
Private Sub ThisAddIn_Shutdown(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Me.Shutdown
MsgBox("Mail Checker addin deleted")
End Sub
Private Sub IDTExtensibility2_OnAddInsUpdate(ByRef custom As System.Array)
Implements IDTExtensibility2.OnAddInsUpdate
MsgBox("Mail Checker notified that add-in have changed.")
End Sub
Private Sub IDTExtensibility2_OnBeginShutdown(ByRef custom As System.Array)
Implements IDTExtensibility2.OnBeginShutdown
End Sub
Private Sub IDTExtensibility2_OnConnection(ByVal Application As Object,
ByVal ConnectMode As ext_ConnectMode, _
ByVal AddInInst
As Object, ByRef custom As System.Array) _
Implements
IDTExtensibility2.OnConnection
MsgBox("Connecting to Mailcheker addin")
End Sub
Private Sub IDTExtensibility2_OnDisconnection(ByVal RemoveMode As
ext_DisconnectMode, _
ByRef custom
As System.Array) Implements IDTExtensibility2.OnDisconnection
End Sub
Private Sub IDTExtensibility2_OnStartupComplete(ByRef custom As
System.Array) _
Implements IDTExtensibility2.OnStartupComplete
Msgbox("Mailchecker Startup complete")
End Sub
End Class