Outlook AddinModule Designer Issue

Add-in Express™ Support Service
That's what is more important than anything else

Outlook AddinModule Designer Issue
 
Byung Kun Kim


Guest


Sometime when I add or remove additional Forms in AddinModule designer tool, well worked application events not fired.
How to resolve it?
Posted 17 Nov, 2016 03:06:10 Top
Byung Kun Kim


Guest


I found what causes the problem.

Some action in designer removes vb 'Handles adxOutlookEvents.XXXX' clause.

But though I repaired handles clauses, the event isn't firing.
Posted 17 Nov, 2016 04:01:09 Top
Andrei Smolin


Add-in Express team


Posts: 18830
Joined: 2006-05-11
Hello Byung,

Sometimes, the "this.components" ("Me.components" in VB.NET) fragment gets removed in the InitializeComponent method. Say, instead of

[CODE]this.adxRibbonTab1 = new AddinExpress.MSO.ADXRibbonTab(this.components);
this.adxRibbonGroup1 = new AddinExpress.MSO.ADXRibbonGroup(this.components);
this.adxRibbonButton1 = new AddinExpress.MSO.ADXRibbonButton(this.components);[QUOTE]

you get

[CODE]this.adxRibbonTab1 = new AddinExpress.MSO.ADXRibbonTab();
this.adxRibbonGroup1 = new AddinExpress.MSO.ADXRibbonGroup();
this.adxRibbonButton1 = new AddinExpress.MSO.ADXRibbonButton();[QUOTE]

If this is the case, open Tools | Options | Windows Forms Designer and set "Optimized Code Generation" to false.



Andrei Smolin
Add-in Express Team Leader
Posted 17 Nov, 2016 04:10:53 Top
Byung Kun Kim


Guest


In my case "Me.components = New System.ComponentModel.Container()" was removed too.

[before]


Private Sub InitializeComponent()
        Me.adxOutlookEvents = New AddinExpress.MSO.ADXOutlookAppEvents()
        Me.adxOlFormsManager = New AddinExpress.OL.ADXOlFormsManager()


[repaired]

    Private Sub InitializeComponent()
        Me.components = New System.ComponentModel.Container()
        Me.adxOutlookEvents = New AddinExpress.MSO.ADXOutlookAppEvents(Me.components)
        Me.adxOlFormsManager = New AddinExpress.OL.ADXOlFormsManager(Me.components)
Posted 17 Nov, 2016 04:21:16 Top
Andrei Smolin


Add-in Express team


Posts: 18830
Joined: 2006-05-11
That is, it works now?


Andrei Smolin
Add-in Express Team Leader
Posted 17 Nov, 2016 05:33:45 Top
Byung Kun Kim


Guest


Yes, sir. :)

Maybe main cause was I renamed my adxForm's class name with Visual Studio's rename feature, not because of the ADX designer tool.
Posted 17 Nov, 2016 05:35:58 Top
Andrei Smolin


Add-in Express team


Posts: 18830
Joined: 2006-05-11
We don't know what causes the issue.


Andrei Smolin
Add-in Express Team Leader
Posted 17 Nov, 2016 06:06:46 Top