Private Sub AddinInstance_OnConnection(ByVal Application As Object, ByVal ConnectMode As AddInDesignerObjects.ext_ConnectMode, ByVal AddInInst As Object, custom() As Variant)
On Error GoTo error_handler
Dim cmdNew As CommandBarControl
Dim plugin As ICHPlugin
'save the vb instance
Set m_VBE = Application
Set m_AddInInst = AddInInst
'Use index for International Version of VB, thanks bicio!
Dim menuBar As CommandBar
Set menuBar = m_VBE.CommandBars(1)
Set cbarCodeHelp = menuBar.Controls.Add(msoControlPopup, , , menuBar.Controls.Count - 1)
cbarCodeHelp.Caption = "&CodeHelp"
Set cmdNew = AddMenuItem("&Plugins Manager...", , False)
Set ctlPlugins = m_VBE.Events.CommandBarEvents(cmdNew)
Set cmdNew = AddMenuItem("&About...", , False)
Set ctlAbout = m_VBE.Events.CommandBarEvents(cmdNew)