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. Problem With ToolBars

Problem With ToolBars

Scheduled Pinned Locked Moved C#
wpfhelp
2 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
    Tyrus182
    wrote on last edited by
    #1

    Hello i have a toolbar in my application and i have visual styles enabled. when i enabled visual styles it wont show the icons in my toolbar otherwise it when visual styles arent enabled it shows the icons. Is there a way to have visual styles enabled and to show my toolbar icons Thanks

    J 1 Reply Last reply
    0
    • T Tyrus182

      Hello i have a toolbar in my application and i have visual styles enabled. when i enabled visual styles it wont show the icons in my toolbar otherwise it when visual styles arent enabled it shows the icons. Is there a way to have visual styles enabled and to show my toolbar icons Thanks

      J Offline
      J Offline
      Joshua Quick
      wrote on last edited by
      #2

      This is caused by a bug in the .NET framework. You can work around it by calling Application.DoEvents() after enabling visual styles like this...

      static void Main()
      {
      Application.EnableVisualStyles();
      Application.DoEvents();
      Application.Run(new MyForm());
      }

      -- modified at 23:35 Tuesday 14th February, 2006

      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