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

remembering name or id of last item clicked of barmanager

Thread ID:





72489 Mar 24,2008 05:46 AM UTC Mar 27,2008 11:15 AM UTC WinForms 1
Tags: Tools
Asked On March 24, 2008 05:46 AM UTC


can we get the name of last baritem clicked ie before the currently clicked bar item.If yes, How?????

Ranju Malhotra

Administrator [Syncfusion]
Replied On March 27, 2008 11:15 AM UTC

Hi Ranju,

Thank you for your interest in Syncfusion Products.

Currently we dont have any specific property or method that traces the previously clicked bar item. As a work around, we need to save the item when it is clicked and can retain it when next item is being clicked. Please find the code snippet that illustrates this:

private void BarItem_Click(object sender, System.EventArgs e)
BarItem barItem = null ;
if(sender is BarItem)
BarItem = sender as BarItem;
this.MyTraceLine(barItem.Text + " Clicked.");
if (Bar_before != null)
this.MyTraceLine(Bar_before.Text + " is previously clicked baritem");
Bar_before = barItem;

Please find the simple sample in the following link:


Please let me know if any concerns.



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