Hiding toolbars

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

Hiding toolbars
Ben Cowling

Posts: 18
Joined: 2010-10-25
I am trying to hide a toolbar. If I use the visible property it does all hide except I still have a small cross next to where it should be - clicking this closes the addon. Is there any way to hide this or make it ready only?
Posted 04 Mar, 2013 10:04:00 Top
Andrei Smolin

Add-in Express team

Posts: 18515
Joined: 2006-05-11
Hello Ben,

In the manual - {Add-in Express}\Docs\adxie.pdf on your PC, we provide the following sample code:

Showing/hiding an IE bar. The same approach is applicable for an IE toolbar.
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

Hope this helps.

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 04 Mar, 2013 10:14:28 Top
Ben Cowling

Posts: 18
Joined: 2010-10-25
Thanks Andrei.

This causes the toolbar to not load. Is there anyway just to hide it but have it loaded?


Posted 04 Mar, 2013 10:48:01 Top
Sergey Grischenko

Add-in Express team

Posts: 7235
Joined: 2004-07-05
Hi Ben,

No, it is not supported in IE. But you can use advanced bars instead of general IE toolbars. Advanced bars are supported in BHO projects (ADX IE Add-on) and they are loaded when IE starts.
Posted 05 Mar, 2013 02:54:45 Top