Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 205113
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T17:31:40+00:00 2026-05-11T17:31:40+00:00

I have written a toolbar that runs on the taskbar. Unfortunately, after it is

  • 0

I have written a toolbar that runs on the taskbar. Unfortunately, after it is installed, the user has to enable it manually. Is there a way to tell explorer to open (or close) a given toolbar?

I would like for the installer, NSIS, to turn on the toolbar when the installation is complete (I realize that a plugin would be necessary).

I also want to know if it’s possible to automatically enable a toolbar for all users, for example in a corporate environment where multiple users would share a PC.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-11T17:31:40+00:00Added an answer on May 11, 2026 at 5:31 pm
    • This CodeProject comment does it by simulating key presses
    • Vista+ has API to do this, with ShowDeskBand and HideDeskBand
    • Edit: This code can now Add a deskband object (from Pinvoke.net, and these two MSDN forum questions):

      [ComImport]
      [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
      [Guid("4CF504B0-DE96-11D0-8B3F-00A0C911E8E5")]
      public interface IBandSite
      {
          [PreserveSig]
          uint AddBand([In, MarshalAs(UnmanagedType.IUnknown)] Object pUnkSite);
          [PreserveSig]
          void RemoveBand(uint dwBandID);
      }
      
      
      private uint AddDeskbandToTray(Guid Deskband)
      {
          Guid IUnknown = new Guid("{00000000-0000-0000-C000-000000000046}");
          Guid ITrayBand = new Guid("{F60AD0A0-E5E1-45cb-B51A-E15B9F8B2934}");   
          Type TrayBandSiteService = Type.GetTypeFromCLSID(ITrayBand, true);
          IBandSite BandSite = Activator.CreateInstance(TrayBandSiteService) as IBandSite;
          object DeskbandObject = CoCreateInstance(Deskband, null, CLSCTX.CLSCTX_INPROC_SERVER, IUnknown);
          return BandSite.AddBand(DeskbandObject);
      }
      

    And, an example use:

    Guid address_toolbar_guid = new Guid("{01E04581-4EEE-11D0-BFE9-00AA005B4383}");
    uint band_id = AddDeskbandToTray(address_toolbar_guid);
    

    It would make sense that a similar call to RemoveBand would also do the trick, but as of yet, I can’t get that code to work. Another issue: the added deskband closes when the application that added it closes.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have written a WCF service with the REST template that has the defaultOutgoingResponseFormat
I have a window that has a menu, a toolbar at the top, and
I have a FF toolbar working in all previous versions. My toolbar partially written
I have written a function that sorts a big scale of data. To test
I have written a function that extract the domain from hostname. e.g. www.domain.com ->
I have a number of utilities that were written in the days of yore
I have written a BHO and a toolbar for Internet Explorer in C#. They
I have written the following code. I know that a higher order function is
I have written a generic CSV file reader that I'm trying to use to
I have written a small program in C to get IP from remote user

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.