Icons in TabControl C# - How?

后端 未结 2 1337
灰色年华
灰色年华 2020-12-11 04:26

I can\'t seem to find an answer for this anywhere. An icon before the label on the default tabcontrol tabs would suffice for my needs.

Thanks in advance.

2条回答
  •  离开以前
    2020-12-11 05:11

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

提交回复
热议问题