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: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

BarManager SelectedItemChanged Event is never emitted (

Thread ID:





25150 Feb 19,2005 08:34 AM UTC Feb 21,2005 03:07 PM UTC WinForms 1
Tags: Tools
Ralf Stanke
Asked On February 19, 2005 08:34 AM UTC

Hi there ! The implementation of BarItem.OnSelected never sets the SelectedItem property if the Selected event of the BarItem is null. So, the mechanism of displaying Tooltips via the BarManager event does not work unless every BarItem has a Selected event assign to it. And, on my opinion, every BarItem should fire the selected event via the BarManager even if it is disabled. Because a disabled BarItem should display a hint as well. BarItems.cs protected virtual void OnSelected(EventArgs args) { if(this.Enabled && this.Selected != null) { if(this.Manager != null) this.Manager.SelectedItem = this; this.Selected(this, args); } } corrected version: protected virtual void OnSelected(EventArgs args) { if(this.Manager != null) this.Manager.SelectedItem = this; if(this.Enabled && this.Selected != null) { this.Selected(this, args); } }

Administrator [Syncfusion]
Replied On February 21, 2005 03:07 PM UTC

Hi Ralf, The SelectedItemChanged event does not fire for disabled BarItems because disabled BarItems cannot be selected. If you mouse over a disabled menu item in VS .NET, IE, etc. you''ll notice that the item is not selected. XPMenus does support tooltips for disabled BarItems. Do you have a reason to not use the built-in tooltips? Regards, Gregory Austin Syncfusion Inc.


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

This page will automatically be redirected to the 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

Live Chat Icon For mobile
Live Chat Icon