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




Posts: 48
Joined: 2011-12-15
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




Posts: 48
Joined: 2011-12-15
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: 14140
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.


Regards from Belarus (GMT+3),

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




Posts: 48
Joined: 2011-12-15
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: 14140
Joined: 2006-05-11
That is, it works now?

Regards from Belarus (GMT+3),

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




Posts: 48
Joined: 2011-12-15
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: 14140
Joined: 2006-05-11
We don't know what causes the issue.

Regards from Belarus (GMT+3),

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