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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. ComboBox borderstyle

ComboBox borderstyle

Scheduled Pinned Locked Moved C#
winformsquestion
4 Posts 3 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.
  • G Offline
    G Offline
    Gian
    wrote on last edited by
    #1

    Hello, i've seen that the most common Windows Forms controls have the property BorderStyle. I've designed some forms with all the controls with FixedSingle like border. But the ComboBox have not, yet, that property. Is there a simple way to change the border? the combo seems too much different to the other components in the program, i'd like to uniform the style. Thanks

    J H 2 Replies Last reply
    0
    • G Gian

      Hello, i've seen that the most common Windows Forms controls have the property BorderStyle. I've designed some forms with all the controls with FixedSingle like border. But the ComboBox have not, yet, that property. Is there a simple way to change the border? the combo seems too much different to the other components in the program, i'd like to uniform the style. Thanks

      J Offline
      J Offline
      Jon G
      wrote on last edited by
      #2

      In order to make a ComboBox "flat", you will need to write your own ComboBox class. Here is an article that will help you. http://www.vbaccelerator.com/home/NET/Code/Controls/ListBox_and_ComboBox/Flat_Style_Combo_Boxes/article.asp[^]

      G 1 Reply Last reply
      0
      • J Jon G

        In order to make a ComboBox "flat", you will need to write your own ComboBox class. Here is an article that will help you. http://www.vbaccelerator.com/home/NET/Code/Controls/ListBox_and_ComboBox/Flat_Style_Combo_Boxes/article.asp[^]

        G Offline
        G Offline
        Gian
        wrote on last edited by
        #3

        thanks ;) i'm looking into it

        1 Reply Last reply
        0
        • G Gian

          Hello, i've seen that the most common Windows Forms controls have the property BorderStyle. I've designed some forms with all the controls with FixedSingle like border. But the ComboBox have not, yet, that property. Is there a simple way to change the border? the combo seems too much different to the other components in the program, i'd like to uniform the style. Thanks

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

          There's several other articles about this on this site as well in C# (though the syntax would be the only thing different between VB.NET and C# code). Just some other alternatives that shouldn't be hard to find if you search CodeProject (say "flat combo" or something like that).

          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