Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / May 2005

Tip: Looking for answers? Try searching our database.

How do I add an image to a toolbar button?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mac - 13 May 2005 08:54 GMT
Hi,

can anyone tell me how to add an image to a toolbar button? I would prefer
not doing it through code - I am hoping I can add it through the form
designer somwhow.

When I access the buttons collection for the toolbar, it would seem logical
to me that there is a property here to add an image to the button. But the
only thing close is image index, but I am unsure how it is implemented.

Can anyone assist?

Mac
Carlos J. Quintero [.NET MVP] - 13 May 2005 11:57 GMT
The Toolbar has an ImageList property. You must add an ImageList control to
the form, add some images to it, set the ImageList property value of the
Toolbar and then the image indexes of buttons refer to the indexes in the
bound imagelist...

Signature

Best regards,

Carlos J. Quintero

MZ-Tools: Productivity add-ins for Visual Studio .NET, VB6, VB5 and VBA
You can code, design and document much faster.
Free resources for add-in developers:
http://www.mztools.com

> Hi,
>
[quoted text clipped - 10 lines]
>
> Mac

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.