We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

BarItem name

Thread ID:





89001 Aug 16,2009 07:15 PM UTC Aug 21,2009 05:40 AM UTC WinForms 1
Tags: Tools
Peter Trevor
Asked On August 16, 2009 07:15 PM UTC

Is there any way to get a BarItem's Name? I have a common menu item click event sink which receives the BarItem as a generic object. I want to be able to identify which BarItem was clicked but when I cast the object back into a BarItem it's Name property doesn't seem to be available.

Nandakumar R [Syncfusion]
Replied On August 21, 2009 05:40 AM UTC


Thanks for the details.

You cannot get the name of the BarItem as that is not exposed. But you can get the Tag or Text property of the BarItem. To raise the events, please refer to the below sample.


The ParentBarItem click event will be fired only when the ParentStyle of it is DropDown. This sample also explains various options in this.

If this does not address your problem, please update a sample or modify this sample, so that we will be able to update this issue with more details after analysis.



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon