Nevron Forum

how to add checkbox in menubar

https://www.nevron.com/Forum/Topic2793.aspx

By khaled mahmoud - Tuesday, December 1, 2009

how to add checkbox in menubar

By Angel Chorbadzhiev - Tuesday, December 1, 2009

Hello  Khaled,

To put a check box in a menu bar you can use NControlHostCommand control.

This is special type of command that allows you to display an arbitrary control in it.

Here is a small example:

NMenuBar menuBar = new NMenuBar();

NControlHostCommand controlHost = new NControlHostCommand();

NCheckBox checkBox = new NCheckBox();

checkBox.Text = "Check Box";

controlHost.SetControl(checkBox);

menuBar.Commands.Add(controlHost);

I hope it will help you to setup your check box command.

Regards,

Angel.

 

By khaled mahmoud - Tuesday, December 1, 2009

I mean in web app not windows app

i mean in DrawingView control
By Angel Chorbadzhiev - Wednesday, December 2, 2009

Hello Khaled,

Could you please elaborate?

Thanks.

 

Regards,

Angel.