Expand Minimize
2 out of 7 rated this helpful - Rate this topic

How to: Create Toggle Buttons in ToolStrip Controls 

When a user clicks a toggle button, it appears sunken and retains the sunken appearance until the user clicks the button again.

To create a toggling ToolStripButton

  • Use code such as the following code example.

    [Visual Basic]

    toolStripButton.CheckOnClick = True
    toolStripButton.CheckedChanged AddressOf _
    EventHandler(toolStripButton_CheckedChanged);
    
    

    [C#]

    toolStripButton.CheckOnClick = true;
    toolStripButton.CheckedChanged += new _
    EventHandler(toolStripButton_CheckedChanged);
    
    

See Also

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.