I have a TabControl
where I want to keep the tabs to a fixed size and I want icons in the tabs. I have set TabControl.SizeMode = Fixed
and TabControl.ItemSize = 100, 18
. I have also set TabControl.ImageList
and am assigning images to the tabs via TabPage.ImageKey
.
Here is what it looks like if I comment-out assigning the ImageKey
:
And here is what it looks like if I am assigning the ImageKey
:
Is there some sort of "alignment" for the icons? I want them to be on the far left in the blank space, but instead they are starting where the text starts. Any suggestions?
(BTW - if I set TabControl.SizeMode = Normal
, I get the tab content the way I want it, but the tabs aren't a fixed size):