I'm a beginner in C# language, so I need some help from the geniuses with this scheme: I need to add a radio button for a menu strip. I've already changed the, CheckOnClick
property to true
, but I need an option for radio button selection. You can see it from the Windows
calculator menu bar (click View).
How can I get to it via the MenuStrip
property?
相关问题
- Sorting 3 numbers without branching [closed]
- Graphics.DrawImage() - Throws out of memory except
- Why am I getting UnauthorizedAccessException on th
- 求获取指定qq 资料的方法
- How to know full paths to DLL's from .csproj f
If you navigate to
msdn.microsoft.com/en-us/library/ms404318.aspx
you will see how it's done ;)!
I know this is a near-ancient post, but I thought it worth mentioning that although there's no native support for a RadioButton MenueItem, it's easy enough to coax their checkboxes into behaving that way. Start by setting the
CheckOnClick
property of each MenueItem toFALSE
. Then apply the sameMouseDown
event handler to each item:You could use the
Click
event instead, but I preferMouseDown
because it provides some visualization to the user that the checked item has changed while leaving theClick
event open for coding the individual items if needed.