Close button for TabPages of Right To Left TabControl c#
问题 I want to add a close button to TabPages of a TabControl . I try this code and it works fine with a Left To Right TabControl: private Point _imageLocation = new Point(13, 5); private Point _imgHitArea = new Point(13, 2); this.tabControl2.DrawMode = System.Windows.Forms.TabDrawMode.OwnerDrawFixed; tabControl2.DrawItem += TabControl2_DrawItem; private void TabControl2_DrawItem(object sender, System.Windows.Forms.DrawItemEventArgs e) { try { Image img = new Bitmap(GestionP.Properties.Resources