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. Windows Forms
  4. How do you hide parts of a usercontrol from the toolbar.

How do you hide parts of a usercontrol from the toolbar.

Scheduled Pinned Locked Moved Windows Forms
csharpquestionvisual-studiohelp
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.
  • F Offline
    F Offline
    frappydan
    wrote on last edited by
    #1

    I've got a usercontrol that uses quite a few other usercontrols putting it together. I only want the "complete" usercontrol to be visible in the toolbar and not the pieces that make it up. How do I hide the parts I want to hide and still be able to use them to build my control? I make the final control by dragging the other items from the toolbar. After I am finished all of my controls are visible in the toolbar and I don't want that. Help?! I am using Visual Studio 2008 Express - C#

    F 1 Reply Last reply
    0
    • F frappydan

      I've got a usercontrol that uses quite a few other usercontrols putting it together. I only want the "complete" usercontrol to be visible in the toolbar and not the pieces that make it up. How do I hide the parts I want to hide and still be able to use them to build my control? I make the final control by dragging the other items from the toolbar. After I am finished all of my controls are visible in the toolbar and I don't want that. Help?! I am using Visual Studio 2008 Express - C#

      F Offline
      F Offline
      Frank Horn
      wrote on last edited by
      #2

      I think you can give those controls you want to hide an attribute

      [System.ComponentModel.ToolboxItem(false)]

      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