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