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.
Unfortunately, activation email could not send to your email. Please try again.

HOW TO: Add images to image list and then those for toolbar buttons

Thread ID:

Created:

Updated:

Platform:

Replies:

370 Jun 13,2002 05:36 AM Jun 14,2002 08:37 AM Windows Forms 1
loading
Tags: FAQ
Abhi
Asked On June 13, 2002 05:36 AM

Hi, I want to add immages to tool bar buttons. I'm not getting how to use the imagelist. Is it required to seperatly creat the imagelist usinf Imagelist.add method and then use it in to user program. Is there any simple way like resources in Win32 (.rc file)? Thanks, AN

Clay Burch [Syncfusion]
Replied On June 14, 2002 08:37 AM

Drag an ImageList onto your form. It will appear in the non-graphic control area. In its property grid, open up its Images property to bring up the collection editor where you can add images to the imagelist. Then in the propertygrid for your toolbar, set the toolbar ImageList property to the imagelist you have added. Finally, for each button, set the ImageIndex property.

CONFIRMATION

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.

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.

;