Close button for TabPages of Right To Left TabControl c#
You can create a function to translate coordinates of a rectangle to RTL coordinates in a container: public static Rectangle GetRTLCoordinates(Rectangle container, Rectangle drawRectangle) { return new Rectangle( container.Width – drawRectangle.Width – drawRectangle.X, drawRectangle.Y, drawRectangle.Width, drawRectangle.Height); } And when painting in RTL mode, calculate coordinates this way: tabRect = GetRTLCoordinates(this.tabControl2.ClientRectangle, tabRect); Also you should draw … Read more