user850010
user850010

Reputation: 6359

How to properly add image to tab in TabControls using WinForm

I want to have images instead of text in tabs for my TabControl, so I have done this:

And this is the result:

Image in tab

As you can see, the image is all blurry.

If I modify TabPage.BackgroundImage to point to this image, then the image looks fine as shown here:

Image as Background in TabPage

Is there a way to make the image in tab look that good?

Upvotes: 2

Views: 1952

Answers (1)

Likurg
Likurg

Reputation: 2760

In default your imagelist contain image 16x16 you should to change size to your image. after it, image will be norm

EDIT

to know the size of the image, you should open property of image file, in tab 'additional' you can find Sizes, this sizes must be on your Imagelist property ImageSize

Upvotes: 3

Related Questions