Add checkable ToolStrip menu items and buttons to test applications
See original GitHub issue.NET version
.NET 8
Did it work in .NET Framework?
No
Did it work in any of the earlier releases of .NET Core or .NET 5+?
No response
Issue description
Following up on recent accessibility improvements for checkable ToolStripMenuItem and ToolStripButton (#8307, #8961), we should add samples of such controls into our test apps.
WinFormsControlsTest app
-
ToolStripMenuItem. There is already a checked item on “Menus” page:
but more cases should be included:ToolStripMenuItemwithCheckState = CheckState.UncheckedandCheckOnClick = trueToolStripMenuItemwithCheckState = CheckState.IndeterminateandCheckOnClick = trueToolStripMenuItemwithCheckState = CheckState.IndeterminateandCheckOnClick = false
-
ToolStripButton. Different cases are already covered on “ToolStrips” page:

Accessibility_Core_App
-
ToolStripMenuItem. There are no samples of checked items on MenuToolbars_Controls - StripControls page, therefore we should add following items:
ToolStripMenuItemwithCheckState = CheckState.UncheckedandCheckOnClick = trueToolStripMenuItemwithCheckState = CheckState.CheckedandCheckOnClick = trueToolStripMenuItemwithCheckState = CheckState.CheckedandCheckOnClick = falseToolStripMenuItemwithCheckState = CheckState.IndeterminateandCheckOnClick = trueToolStripMenuItemwithCheckState = CheckState.IndeterminateandCheckOnClick = false
-
ToolStripButton. There are also no checked buttons on MenuToolbars_Controls - StripControls page, therefore we should add a set of similar cases:
ToolStripButtonwithCheckState = CheckState.UncheckedandCheckOnClick = falseToolStripButtonwithCheckState = CheckState.UncheckedandCheckOnClick = trueToolStripButtonwithCheckState = CheckState.CheckedandCheckOnClick = trueToolStripButtonwithCheckState = CheckState.CheckedandCheckOnClick = falseToolStripButtonwithCheckState = CheckState.IndeterminateandCheckOnClick = trueToolStripButtonwithCheckState = CheckState.IndeterminateandCheckOnClick = false
Steps to reproduce
N/A
Issue Analytics
- State:
- Created 5 months ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
How to: Add ToolStrip Items Dynamically - Windows Forms ...
Learn how to dynamically add ToolStrip items to a ContextMenuStrip ... the menu item collection of a ToolStrip control when the menu opens....
Read more >C# Add Checkbox To WinForms Context Menu
The menu items have a Checked property ( MenuItem.Checked , ToolStripMenuItem.Checked ) that you can use for this purpose.
Read more >Access Frequently Used Features and Commands in ...
Right-click an item in the toolstrip and select Add to Quick Access Toolbar. ... Controls button and selecting or clearing the corresponding check...
Read more >Menus
Menus are a common user interface component in many types of applications. To provide a familiar and consistent user experience, ...
Read more >Python and PyQt: Creating Menus, Toolbars, and Status Bars
In this step-by-step tutorial, you'll learn how to create, customize, and use Python menus, toolbars, and status bars for creating GUI applications using ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@Amy-Li03 looks good! Can you also create a pull request with these changes to the form in this repo?
@Olina-Zhang - would your team be able to extend the accessibility test app with the suggested cases? This is a low priority work item, but hopefully a quick one.
@dmitrii-drobotov - please add these cases to WinformsControlsApp, as you would need them when porting the fix anyway.