Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Elegant Ribbon Tech Support » Image from an ImageList Collapse All
Subject Author Date
Gunter Avenius Oct 29, 2007 - 8:17 AM

Hello,

VB2005

How can i use a Image from a ImageList in a Ribbon Control (Button)?

Thanks

Best regards
Gunter Avenius

Gunter Avenius Oct 29, 2007 - 10:21 AM

Hello,

thanks!

Best Regards
Gunter

Technical Support Oct 29, 2007 - 9:48 AM

Actually it doesn’t matter where you obtain the image from. What is really important is that you should have a reference to an object of the Image type. For the button you can assign a large image (the DefaultLargeImage property) or/and a small image (the DefaultSmallImage property). Although there is no special support for ImageList in design mode, you can assign an image for the button programmatically. For example, you could override the form’s OnLoad method and add the code like as follows

Button1.DefaultSmallImage = ImageList1.Images(2)