you could try something like this:
SizeF mySizeF = graphics.MeasureString(incomingpath ,textFontBold); Size mySize = Size.Ceiling(mySizeF); Point myPoint = new Point(ChartControl.Bounds.Left, ChartControl.Bounds.Top); Rectangle rectangle1 = new Rectangle(myPoint,mySize); graphics.DrawRectangle(borderPen,rectangle1);
Ralph
Comment