toolStripSplitButton Doesn;t comes in Pressed state.
-
Hi All, I am inserting a toolStripSplitButton into the ToolStrip. And all the things are going fine. At run time. when I select a Item from a DropDown items, the button part of the Split Button doesn't comes into the Pressed state.That is end user will not get to know that the item is selected. I want the button part of the Split Button should work like a toggle button when a item is selected from DropDown or from the Button directly. Let me known about the rendering if required, I do not know much about Rendering. thanks Rahul Kapoor.
-
Hi All, I am inserting a toolStripSplitButton into the ToolStrip. And all the things are going fine. At run time. when I select a Item from a DropDown items, the button part of the Split Button doesn't comes into the Pressed state.That is end user will not get to know that the item is selected. I want the button part of the Split Button should work like a toggle button when a item is selected from DropDown or from the Button directly. Let me known about the rendering if required, I do not know much about Rendering. thanks Rahul Kapoor.
You can set the ButtonPressed[^]-property in the DropDownItemClicked[^]-event :)
I are Troll :suss:
-
You can set the ButtonPressed[^]-property in the DropDownItemClicked[^]-event :)
I are Troll :suss:
Sir, let me know how can I set a read only property ? Let me know something from the corner.
-
Sir, let me know how can I set a read only property ? Let me know something from the corner.
My bad, I mixed up the ToolStripSplitButton with a ToolStripButton. The property is indeed readonly, I didn't find any "nice" solution to display the button in a checked state. It has been reported on Microsoft Connect[^] in 2005, but it doesn't mention what version of the Framework that this applies to. There's no
Checked
property in the ToolStripSplitButton, nor in the ToolStripDropDownButton. That leaves only the option of extending the controls and building the desired functionality yourself, using owner-drawing. I found a thread of someone who did that here[^].I are Troll :suss: