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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T07:21:30+00:00 2026-06-15T07:21:30+00:00

I have a toolstrip control inside a custom user-control. The custom user control is

  • 0

I have a toolstrip control inside a custom user-control. The custom user control is used multiple times on the same form. I’m trying to apply a custom gradient to the toolstrip. I can’t add a custom gradient at design time, so I need to do it at some point when the toolstrip is placed on the form during the event cycle.

I can use something like this:

MyToolstrip.Renderer = New ToolStripProfessionalRenderer(New MyInheretedProColorTable)

The problem is, I don’t know where to put it. There are no events that would seem to work for this.

Because I’m using multiple toolstrips (that I want to be different colors), I can’t change the renderer of the ToolstripManager on the whole form because it will change the color of all toolstrips to the same color. This is really odd how MS handles these.

http://msdn.microsoft.com/en-us/library/system.windows.forms.toolstrip_events.aspx

Any ideas? Thanks

  • 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-06-15T07:21:32+00:00Added an answer on June 15, 2026 at 7:21 am

    The toolstrip gets created in the constructor by the InitializeComponent() call. So that’s where this statement belongs as well, right after that call. Boiler plate code is:

    Public Class UserControl1
        Public Sub New()
            '' This call is required by the Windows Form Designer.
            InitializeComponent()
            '' Add any initialization after the InitializeComponent() call.
            MyToolstrip.Renderer = New ToolStripProfessionalRenderer(New MyInheretedProColorTable)
        End Sub
    End Class
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Guys, I have a windows form with a panel control and inside the panel
I try apply tooltip style on textboxstyle In user control. Style I have in:
I have a custom control (C#, visual studio). I want to show a tooltip
I have a form with a Toolstrip along the top. On this toolbar I
I have a ToolStrip with a ToolStripComboBox control on it, and I would like
I have a login which have admin and user rights. If admin- i can
I have a TextBlock inside a limited-size control. If the text is too long
I am working in a C# winforms project and I have a user control
I have a uvSelfLoadingTextBox with multiple instances on a form. I would like to
I have a .net control (ok, a lot of them). I can invoke methods

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.