ComboBoxBarItem problem

Hi,
I want to perform copy paste option in ComboBoxBarItem textbox.which i am able to do successfully using ctrl+C and ctrl+V.But i want to perforn the same operation through menu options.copy and paste options are disbled by default and should be activated when user selects this baritem.and should be disabled when user selects any other bar item or control exept copy,paste.I was able to do the same when i used panel and added combobox to it.I used enter and leave events of the combobox .but after adding baritems instead this cannnot be implemented.is there any event corresponding to Leave event of combobox.??? or can we check whether cursor is still blinking in the comboboxbaritem??????

can we add a panel to barmanager so that it can act as toolbar as the above functionality is working fine through panel???


1 Reply

AD Administrator Syncfusion Team February 25, 2008 12:27 PM UTC

Hi Ranju,

Thank you for using Syncfusion products.

Enter and Leave events for ComboBoxBarItem :

Yes, You can access Enter and Leave events of ComboBoxBarItem using ComboBoxBarItem.ListBox as follows.

[C#]

this.comboBoxBarItem1.ListBox.Enter += new EventHandler(ListBox_Enter);
this.comboBoxBarItem1.ListBox.Leave += new EventHandler(ListBox_Leave);

You can also make the panel with comboBox to act as toolbar using CommandBar which is used to create and host toolbar.

Please refer Online documentation on CommandBar in the following link

http://www2.syncfusion.com/ug_61/toolswin/CommandBarsPackage.html

Sample reference

Please refer the simple sample demonstrates the above said features.
http://websamples.syncfusion.com/samples/Tools.Windows/F71975/main.htm

Please let me know if this helps you.

Regards,
Jaya


Loader.
Up arrow icon