How to add an icon or image to a tab in Visual Studio 2010
问题 I want to put an icon in the tab header so that this looks like this. 回答1: You can do it in the VS Designer this way: Add an ImageList to your form. Set the ImageList property of the TabControl to the ImageList which contains the icons. Set the ImageIndex or ImageKey property of each TabPage in the TabControl to the desired image you want to display. If you'd like to do it all in code, here's how to go about it. using System.Drawing; using System.Windows.Forms; public class Form1 { public