Icons in TabControl C # - How?

I can't seem to find anything for this. The icon before the label on the tabcontrol tabs by default will be sufficient for my needs.

Thanks in advance.

Q: You need to clarify which set of libraries you use: Winforms, WPF, ASP.Net, GTK #, etc. - Nathan Ernst

A: You are absolutely right, my mistake. I am using Winforms. I switched from WPF since WPF crashed on some computers.

+6
c # winforms icons tabcontrol
source share
2 answers

This is the built-in function of TabControl. Drop the ImageList on the form and fill it with your icons. Set the TabControl.ImageList property. For each tab page, set the ImageIndex property.

+18
source share

Drag the list of images from the toolbar onto winform and add the images to the collection from the properties window. Add tabcontrol and set the TabControl.ImageList property. Set the ImageIndex property for each bookmark. see example http://www.youtube.com/watch?v=D7E6xJyd6KM

+1
source share

All Articles