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 3406252
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T05:36:19+00:00 2026-05-18T05:36:19+00:00

For a small program that I am developing, I decided it’s best to implement

  • 0

For a small program that I am developing, I decided it’s best to implement a Quick Access Toolbar (like those that come with Ribbon controls (office 2007, 2010?)).
Now my problem is that I cannot find any free Ribbon control for winforms from which I could extract the toolbar.

I have a pseudo-QAC at the moment but there is a rendering issue with the standard toolbar.

So can anyone show me a good implementation for this control? It must be OS-independent. (No DWM-only non-client are removing.)


For others, this is my result:

In a new form, I add the following code:

protected override CreateParams CreateParams
{
    get
    {
        var cp = base.CreateParams; // Retrieve the normal parameters.
        cp.Style = 0x40000000 | 0x4000000; // WS_CHILD | WS_CLIPSIBLINGS
        cp.ExStyle &= 0x00080000; // WS_EX_LAYERED
        cp.Parent = GetDesktopWindow(); // Make "GetDesktopWindow()" from your own namespace.
        return cp;
    }
}

And then place a toolbox with a style provided by Cody Gray, and I always move this form with it’s owner and now I have a quick access toolbar! 😀

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

    From what I gather in reading the comments, you are looking for a simple toolbar control that provides a quick way for the user to perform common tasks/operations. However, unlike the Quick Access Toolbar included in a Microsoft Office-style Ribbon, you don’t want a solution that requires drawing in the non-client area because this solution is not portable. Drawing in the non-client area requires rolling out completely custom window chrome, which isn’t going to work seamlessly across all versions of Windows (because of DWM and a host of other reasons).

    I suggested using the standard ToolStrip control provided in the Framework, but you expressed concern that it draws a white line underneath it and said that when you try to hide this white line by placing it inside a panel, the highlight border (which you want) gets covered as well.

    Therefore, I propose a couple of possible solutions:

    1. The ToolStrip‘s bottom white border only gets drawn when its RenderMode property is set to “System”. You can set it to “Professional” instead and banish the white line forever, while retaining the darkened hover border effect.

    2. If you don’t like the “Professional” rendering style and want to stick with “System”, you can simply inherit off of the existing ToolStripSystemRenderer and stop it from drawing the bottom white border:

    public class CorrectedToolStripRenderer : ToolStripSystemRenderer
    {
        protected override void OnRenderToolStripBorder(ToolStripRenderEventArgs e)
        {
            //do nothing here
        }
    }
    

    And then simply set the ToolStrip control to use your custom renderer, like so:

    myToolStrip.Renderer = new CorrectedToolStripRenderer();
    

    3. You can implement a completely custom renderer for the ToolStrip, derived directly from the base ToolStripRenderer class, and define for yourself exactly how you want it to look.

    For example, because I hate controls that don’t look like standard Windows UI elements, I have a custom renderer that I use to ensure menus and toolbars in all of my WinForms applications are painted just like those in the OS. (“System” doesn’t get it anywhere close to right in Vista/7.) Mine is a heavily-modified version of this sample.

    Others (here’s looking at you, Office team) absolutely love a custom UI, and this way allows you to really go all out and match the appearance of your application. For example, here are custom renderers that look like Visual Studio 2010 or Office 2007 to get you started. A Google search will turn up tons more.

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

Sidebar

Related Questions

I am developing a small program which cuts images by the color. That's will
I'm developing a small haskell program that uses an external static library I've developed
I've got a small Java program that I'm developing for a project, which pulls
I would like to write a small program that will run other programs. I'm
I have a small program that keeps updating data every second like a mentoring
I am writing a small program that sends and receive multicast packets.I need to
Below is a small program that I have written to count the number of
I've got a small program that displays third-party generated HTML pages. It's really just
I have a small program that's supposed to sample some value from a device
I have a small program that reads in a file and processes the data

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.