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. custom control properties

custom control properties

Scheduled Pinned Locked Moved C#
question
5 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.
  • X Offline
    X Offline
    xilefxilef
    wrote on last edited by
    #1

    I wanted to create a custom control property that includes checkboxes, just like ShortCutKeys property for ToolStripMenuItem. How would I create something like this? thank you

    P 1 Reply Last reply
    0
    • X xilefxilef

      I wanted to create a custom control property that includes checkboxes, just like ShortCutKeys property for ToolStripMenuItem. How would I create something like this? thank you

      P Offline
      P Offline
      Paw Jershauge
      wrote on last edited by
      #2

      Let me see if i get this right, you want to put some custom control into the ToolStrip or MenuStrip right ???

      With great code, comes great complexity, so keep it simple stupid...:-\ :-\

      X 1 Reply Last reply
      0
      • P Paw Jershauge

        Let me see if i get this right, you want to put some custom control into the ToolStrip or MenuStrip right ???

        With great code, comes great complexity, so keep it simple stupid...:-\ :-\

        X Offline
        X Offline
        xilefxilef
        wrote on last edited by
        #3

        ok, sorry for not being more clear. No, I have a custom control. And for this control, I need to create a custom property that has checkboxes in my customs control's property grid. Similar to 'Dock' property that displays a clickable custom graphic on the dropdown. Or if you look at 'ShortCutKeys' property for 'ToolStripMenuItem' control, you'll see a drop down with checkboxes. So lets say I have a custom Button control with custom 'Text' property. And when a user sets this 'Text' property, in the property grid dropdown for this property, I need to display checkboxes with values.

        P 1 Reply Last reply
        0
        • X xilefxilef

          ok, sorry for not being more clear. No, I have a custom control. And for this control, I need to create a custom property that has checkboxes in my customs control's property grid. Similar to 'Dock' property that displays a clickable custom graphic on the dropdown. Or if you look at 'ShortCutKeys' property for 'ToolStripMenuItem' control, you'll see a drop down with checkboxes. So lets say I have a custom Button control with custom 'Text' property. And when a user sets this 'Text' property, in the property grid dropdown for this property, I need to display checkboxes with values.

          P Offline
          P Offline
          Paw Jershauge
          wrote on last edited by
          #4

          Ahh ok i think i get it.. please take a look at these two articles: Getting the Most Out of the .NET Framework PropertyGrid Control[^] Add Custom Properties to a PropertyGrid[^] Hope it helps ;)

          With great code, comes great complexity, so keep it simple stupid...:-\ :-\

          Y 1 Reply Last reply
          0
          • P Paw Jershauge

            Ahh ok i think i get it.. please take a look at these two articles: Getting the Most Out of the .NET Framework PropertyGrid Control[^] Add Custom Properties to a PropertyGrid[^] Hope it helps ;)

            With great code, comes great complexity, so keep it simple stupid...:-\ :-\

            Y Offline
            Y Offline
            yu jian
            wrote on last edited by
            #5

            A good answer. It helps me to resolve my question. :-D :-D

            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