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

  • Home
  • SEARCH
  • 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 6884049
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T05:27:34+00:00 2026-05-27T05:27:34+00:00

I’m trying to display the Address toolbar from the Windows Taskbar in my own

  • 0

I’m trying to display the Address toolbar from the Windows Taskbar in my own WinForm. I can get the CLSID of the Address toobar ({01E04581-4EEE-11d0-BFE9-00AA005B4383}), and I can get an IDeskBand reference to it. But… then what?

Guid bandCLSID = new Guid("{01E04581-4EEE-11d0-BFE9-00AA005B4383}");
Type bandType = Type.GetTypeFromCLSID(bandCLSID);
IDeskBand deskband = (IDeskBand)Activator.CreateInstance(bandType);

I’ve tried hosting it in an AxHost, but the Address toolbar is not an ActiveX control. I’ve tried calling

(deskband as IOleObjectWithSite).SetSite(various interfaces);

or

(deskband as IDockingWindow).ShowDW(true);

as well as various other interfaces and their methods, but nothing I do seems to get me anywhere. I’d be overjoyed if I could actually see that toolbar appear anywhere. But I can’t seem to bridge the gap between having the IDeskBand reference and plugging it into my Windows Form.

Has anybody attempted this before, and gotten further than I have?

  • 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-27T05:27:35+00:00Added an answer on May 27, 2026 at 5:27 am

    I don’t think this is supported, as a DeskBand is supposed to be hosted by Explorer, but here is a sample Form code that demonstrates how to do it and should help to get you started.

    The idea is you need to be the “Site”, instead of Explorer. If you look at the documentation here Creating Custom Explorer Bars, Tool Bands, and Desk Bands, you need to ensure your code behave like Explorer behaves. So, the fist thing to do is to give a “Site” implementation to the desk band object, and the first interface this implementation needs to provide is IOleWindow. The desk band object will ask your “Site” what is the parent windows handle. Just give the form’s handle (for example) and the desk band will display itself as a Form’s child:

    enter image description here

    NOTE: You can’t use any Form or Control class as the IOleWindow implementer because it’s already implementing it behind the scene (Winforms implementation), and this implementation is very specific, so you’ll need a custom site as demonstrated here.

    namespace WindowsFormsApplication1
    {
        public partial class Form1 : Form
        {
            private IObjectWithSite _band = (IObjectWithSite)Activator.CreateInstance(Type.GetTypeFromCLSID(new Guid("{01E04581-4EEE-11d0-BFE9-00AA005B4383}")));
            private BandSite _site;
    
            public Form1()
            {
                InitializeComponent();
            }
    
            protected override void CreateHandle()
            {
                base.CreateHandle();
                if (_site == null)
                {
                    _site = new BandSite(Handle);
                    _band.SetSite(_site);
                }
            }
    
            private class BandSite : IOleWindow
            {
                private IntPtr _hwnd;
    
                public BandSite(IntPtr hwnd)
                {
                    _hwnd = hwnd;
                }
    
                void IOleWindow.GetWindow(out IntPtr hwnd)
                {
                    hwnd = _hwnd;
                }
    
                void IOleWindow.ContextSensitiveHelp(int fEnterMode)
                {
                    throw new NotImplementedException();
                }
            }
        }
    
        [ComImport, Guid("FC4801A3-2BA9-11CF-A229-00AA003D7352"), InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
        public interface IObjectWithSite
        {
            void SetSite([MarshalAs(UnmanagedType.IUnknown)] object pUnkSite);
    
            [return: MarshalAs(UnmanagedType.IUnknown)]
            object GetSite(ref Guid riid);
        }
    
        [ComImport, Guid("00000114-0000-0000-C000-000000000046"), InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
        public interface IOleWindow
        {
            void GetWindow(out IntPtr hwnd);
            void ContextSensitiveHelp(int fEnterMode);
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to understand how to use SyndicationItem to display feed which is
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
Does anyone know how can I replace this 2 symbol below from the string
Basically, what I'm trying to create is a page of div tags, each has
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
link Im having trouble converting the html entites into html characters, (&# 8217;) i
For some reason, after submitting a string like this Jack’s Spindle from a text
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I am trying to render a haml file in a javascript response like so:
In my XML file chapters tag has more chapter tag.i need to display chapters

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.