Displaying Side Bar in Multiple Tabs

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

Displaying Side Bar in Multiple Tabs
Displaying Side Bar in Multiple Tabs 
Anoop Kovoor




Posts: 19
Joined: 2012-11-06
In Internet Explorer, we are showing side bar with search results on clicking a button in the tool bar. Results are displayed in the side bar when already an instance of side bar is opened. Now we close the side bar and open a new tab. When we click on the button to display the results, the side bar is not getting opened. When we analyzed further, we observed that BarObj property is null but the BarType is set to the correct type. Also the class 'ADXIEBarItem' that contains 'BarObj' is sealed and only get method is available for 'BarObj' property.

Could you please guide us on how to open a side bar in a tab when no side bars is opened on any of the other tabs or explicitly opened by clicking menu (View-> Explorer bars)?
Posted 26 Jul, 2013 05:01:57 Top
Andrei Smolin


Add-in Express team


Posts: 14094
Joined: 2006-05-11
Hello Anoop,

The manual contains an answer to this, too ))) Here's the sample code:

Showing/hiding an IE bar. The same approach is applicable for an IE toolbar.
'VB.NET
Imports System.Windows.Forms
Imports AddinExpress.IE
...
Dim flag As Boolean = False
Private Sub AdxieMenuItem1_OnClick(sender As System.Object, _
        eventObject As System.Object) _
        Handles AdxieMenuItem1.OnClick
    Dim dummy As Object = Nothing
    Dim show As Object = flag
    Dim guid As Object = Type.GetType("MyIEAddon1.MyIEBar1").GUID.ToString("B")
    IEApp.ShowBrowserBar(guid, show, dummy)
    flag = Not flag
End Sub


Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 26 Jul, 2013 05:13:10 Top
Anoop Kovoor




Posts: 19
Joined: 2012-11-06
Thank you very much! It works!
Posted 29 Jul, 2013 01:07:38 Top