Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Change Menu Bar Backgroud Color

Change Menu Bar Backgroud Color

Scheduled Pinned Locked Moved C#
tutorialquestion
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    TaoLi
    wrote on last edited by
    #1

    Does anyone know how to change the backgroud color of the entire Menu Bar? Thanks in advance!

    H 1 Reply Last reply
    0
    • T TaoLi

      Does anyone know how to change the backgroud color of the entire Menu Bar? Thanks in advance!

      H Offline
      H Offline
      Heath Stewart
      wrote on last edited by
      #2

      You must either change your system colors (applies to all applications) or owner-draw your entire main form and paint a different fill color in the area occupied by the menu. The MainMenu is not a control and cannot be drawn individually.

      Microsoft MVP, Visual C# My Articles

      T 1 Reply Last reply
      0
      • H Heath Stewart

        You must either change your system colors (applies to all applications) or owner-draw your entire main form and paint a different fill color in the area occupied by the menu. The MainMenu is not a control and cannot be drawn individually.

        Microsoft MVP, Visual C# My Articles

        T Offline
        T Offline
        TaoLi
        wrote on last edited by
        #3

        Could you give me a little hint on how to do the Owner Draw on the form and fill in different color for the whole Menu Bar area?

        H 1 Reply Last reply
        0
        • T TaoLi

          Could you give me a little hint on how to do the Owner Draw on the form and fill in different color for the whole Menu Bar area?

          H Offline
          H Offline
          Heath Stewart
          wrote on last edited by
          #4

          See the Control.OnPaint method documentation in the .NET Framework SDK. Override this in your form. If you don't know how to perform owner drawing, then you better do a search here on CodeProject. It's not trivial.

          Microsoft MVP, Visual C# My Articles

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups