Two different Constructor for Toolbar and Explorer Bar

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

Two different Constructor for Toolbar and Explorer Bar
Two different Constructor for Toolbar and Explorer Bar 
Phuong Nguyen


Guest


Hi Add-on Express Support Team,

Add-on express for IE created two different constructor for both my toolbar and explorer bar, i.e

public MyToolBar()
{
InitializeComponent();

}

and

public MyToolBar(int mode) :
base(mode)
{
InitializeComponent();
}

What is the purpose to have 2 different constructors? Can anyone let me know what are the difference between these 2 constructors because I do not want InitializeComponent called twice.

The reason I asked because sometime I opened my explorer bar and I saw a blank explorer bar but I did not see my treeview is loaded on it as usual (My explorer bar contains a treeview).

Any info is appreciated.

Thanks for your great support,
Phuong
Posted 11 Aug, 2009 02:27:13 Top
Eugene Astafiev


Guest


Hi Phuong,

The second constructor (with a parameter) is for internal purpose only.

The reason I asked because sometime I opened my explorer bar and I saw a blank explorer bar but I did not see my treeview is loaded on it as usual (My explorer bar contains a treeview).


How can I reproduce the issue you described here? Could you provide a sample project?
Posted 11 Aug, 2009 07:46:42 Top
Phuong Nguyen


Guest


Hi Eugene,

Here is my project.

1. Create a IE toolbar which have a button called 'button1', when user click on button1, it toggle explorer bar (using ShowBrowserBar method)
2. The explorer bar have a TreeView as a component
3. Keep toggle (turn on/off) explorer bar by clicking on button1
4. After try few times, close and re-open browser.
5. Repeat step 3-4 a few times.
5 Sometime the browser is opened with a blank explorer bar in it but there is no TreeView

Thanks,
Phuong

Posted 13 Aug, 2009 02:52:28 Top
Eugene Astafiev


Guest


Hi Phuong,

I have a bunch of questions for you:
1. What version and build number of Add-in Express do you use?
2. What OS do you use?
3. What IE version do you use?
4. Is the Protected Mode enabled in IE?
Posted 13 Aug, 2009 07:44:56 Top
Phuong Nguyen


Guest


Hi Eugene,

Thanks for your quick response. Here are the info you request

I have a bunch of questions for you:
1. What version and build number of Add-in Express do you use?
4.4.127
2. What OS do you use?
XP Professional SP2
3. What IE version do you use?

IE7
4. Is the Protected Mode enabled in IE?

No

Thanks,
Phuong
Posted 13 Aug, 2009 14:51:25 Top
Eugene Astafiev


Guest


Hi Phuong,

Please try installing the latest build of the Add-in Express 2008 generation. You can download it http://www.add-in-express.com/downloads/adxnet-ie.php.

BTW Don't forget to replace the adxloader.dll in the Loader folder of your project with a new one.
Posted 14 Aug, 2009 08:02:49 Top