Cags
Well-known member
Im creating what is essentially a custom control which consists of a grid with text values being included in the cells. The entire control is being drawn using DrawLine, DrawString etc. What I am trying todo is have it so that if a cell is resized, the control automatically selects (or at least tries to select) a font size that will still allow the entire string to stay within the sections.
I know there is a MeasureString function, but Im not sure how much help it would be in this instance, I might come up with an idea after some sleep, but if anyone has anyone can point me in the right direction, itd be much appreciated?
I know there is a MeasureString function, but Im not sure how much help it would be in this instance, I might come up with an idea after some sleep, but if anyone has anyone can point me in the right direction, itd be much appreciated?