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