netmajor
netmajor

Reputation: 6585

insert radiobox in menu in forms

How can I insert radiobutton in Menu as Menu item. I use WinForms and there I see only few option to insert other controls, but no radio :/
Also it's impossible to drag it from Controls and drop in menu in Design View :/

Upvotes: 0

Views: 607

Answers (2)

Pedery
Pedery

Reputation: 3636

If you really do want to do this, create an owner drawn menu. This is pretty straightforward. Here's a tutorial:

http://www.csharphelp.com/2006/08/ownerdraw-menu-items-in-c/

As for drawing the radiobuttons, use the static functions of the ControlPaint class.

Upvotes: 1

Conrad Albrecht
Conrad Albrecht

Reputation: 2066

That's probably because an actual "radio button" control as a menu item would be weird, when you can already show a menu item as "checked" using the "radio button style". See the MenuItem.RadioCheck property.

Upvotes: 2

Related Questions