Articles in this section
Category / Section

How to display a different image when pressing any baritem in WinForms XPToolBar?

1 min read

Image settings

To display different image when pressing a bar item can be achieved using PressedImageList and PressedImageIndex properties.

C#

this.barItem3.PressedImageIndex = 2;
this.barItem3.PressedImageListAdv = this.imageListAdv1;

VB

Me.barItem3.PressedImageIndex = 2
Me.barItem3.PressedImageListAdv = Me.imageListAdv1

 

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied