2

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

  • added image in ImageList
  • myTabControl.ImageList is pointing to this ImageList
  • TabPage.ImageIndex has an index to that image

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?

2
  • Show your code, it seems that you have wrong size of image Commented Apr 28, 2012 at 7:14
  • Ok, i understand you, wait a minute Commented Apr 28, 2012 at 7:24

1 Answer 1

3

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.