Access Label on TaskPane2

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

Access Label on TaskPane2
Cannot update label on Task pane 2 from sub 
Peter Baddeley




Posts: 7
Joined: 2010-07-20
Just not getting this I am afraid
Thanks for the help on closing the TaskPane worked great
But...
I just cannot change a label from a Sub on TaskPane2 from code within the panel itself
Work fine on the LOAD and Activate event on the TaskPane but I cannot do this:

lblLabel1.Text = retVV & " Before decrypt"

although lblLabel1 shows in intellisense

This Sub is called from within
Private Sub AddinModule_AddinStartupComplete

I am using VB.NET 2008 and Excel 2007

thanks
Posted 27 Jul, 2010 16:59:13 Top
Peter Baddeley




Posts: 7
Joined: 2010-07-20
I think I solved it -- stupid me

I moved the sub from the Private Sub AddinModule_AddinStartupComplete

to the Private Sub ADXExcelTaskPane2_ADXBeforeTaskPaneShow(ByVal sender As System.Object, ByVal e As AddinExpress.XL.ADXBeforeTaskPaneShowEventArgs) Handles MyBase.ADXBeforeTaskPaneShow

so I guess the panel was not created or ready ?

thanks
Posted 27 Jul, 2010 21:14:31 Top
Andrei Smolin


Add-in Express team


Posts: 14129
Joined: 2006-05-11
Hi Peter,

Peter Baddeley wrote:
so I guess the panel was not created or ready ?


Most probably.

Regards from Belarus (GMT+2),

Andrei Smolin
Add-in Express Team Leader
Posted 28 Jul, 2010 07:49:49 Top