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

Changing a button icon

Thread ID:





53664 Dec 18,2006 06:04 PM UTC Dec 18,2006 07:40 PM UTC WinForms 1
Tags: Tools
Nick Harrison
Asked On December 18, 2006 06:04 PM UTC


We're trying to evaluate how long Essential Tools takes to change the image on a toolbar button, as we have a number of status indicators that change depending on network activity, for example.

I've added some code to one of the sample projects to change a button's image index and back again, but the display doesn't update unless I refresh the whole form, which takes a long time.

Is there a way to refresh just the button that has changed?

Many thanks


Murugan [Syncfusion]
Replied On December 18, 2006 07:40 PM UTC

Hi Nick,

We will assign new Icon for a particular toolbar button by changing barItem.ImageIndex property of the barItem.

Here is the code snippet:
private void barItem1_Click(object sender, EventArgs e)
this.barItem2.ImageList = this.imageList1;
this.barItem2.ImageIndex = 1;

Please use the above code snippet and let me know if it resolves the issue.

Thanks for choosing Syncfusion products.

Murugan P.S


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