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. How do I create different sized toolbar buttons?

How do I create different sized toolbar buttons?

Scheduled Pinned Locked Moved C#
questionhelp
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.
  • P Offline
    P Offline
    pliu_2000
    wrote on last edited by
    #1

    Hi, I have a toolbar on a windows client form. The toolbar contains a mix of icons and icons + text styled buttons. However, the toolbar seems to resize all buttons to the widest button. How can I make the toolbar buttons different widths? I guess I'm trying to get something similar to the IE toolbar where you have buttons like the Home (icon only) and the Search (icon + text). Any help/advice is much appreciated Thanks Peter

    R 1 Reply Last reply
    0
    • P pliu_2000

      Hi, I have a toolbar on a windows client form. The toolbar contains a mix of icons and icons + text styled buttons. However, the toolbar seems to resize all buttons to the widest button. How can I make the toolbar buttons different widths? I guess I'm trying to get something similar to the IE toolbar where you have buttons like the Home (icon only) and the Search (icon + text). Any help/advice is much appreciated Thanks Peter

      R Offline
      R Offline
      Ravi Bhavnani
      wrote on last edited by
      #2

      You should be able to disable the AutoSize property of each button. At least you can in a ToolStrip. See this[^] screenshot for example. /ravi My new year's resolution: 2048 x 1536 Home | Music | Articles | Freeware | Trips ravib(at)ravib(dot)com

      P 1 Reply Last reply
      0
      • R Ravi Bhavnani

        You should be able to disable the AutoSize property of each button. At least you can in a ToolStrip. See this[^] screenshot for example. /ravi My new year's resolution: 2048 x 1536 Home | Music | Articles | Freeware | Trips ravib(at)ravib(dot)com

        P Offline
        P Offline
        pliu_2000
        wrote on last edited by
        #3

        Thanks, but no luck there. The AutSize property is only for the Toolbar control only and not available for each button. :-(

        R 1 Reply Last reply
        0
        • P pliu_2000

          Thanks, but no luck there. The AutSize property is only for the Toolbar control only and not available for each button. :-(

          R Offline
          R Offline
          Ravi Bhavnani
          wrote on last edited by
          #4

          Sorry, I meant ToolStripItem[^]. /ravi My new year's resolution: 2048 x 1536 Home | Music | Articles | Freeware | Trips ravib(at)ravib(dot)com

          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