This is not a simple task, not even slightly.
The major problem is that the default font for text boxes is a proportional font: the charcaters are not all the same width. "i" is narrower than "m" for example - this makes working out how many characters you can fit to a "line" much harder than you might think because the width of a word varies depending on what characters it is spelled with.
You can do it: look at
System.Drawing.Graphics.MeasureString[
^] and then work it out, but the simplest solution is to fill the panel with a docked textbox set to "Multiline" and WordWrap both set to "true" and let it sort it all out! :laugh: