I have a label control that will be filled with text at runtime. The
length of the text will vary, but the label must stay the same size. Is
there a way to set the font size of the text such that it completely
fills the label?
For example, if the text is "Santa Claus" the font size might have to be
130 points to fill up a 637x476 label, where if the text is "Once upon a
midnight dreary / while I pondered weak and weary / over many a quaint
and curious volume of forgotten lore" the font size might have to be 40
points to fill up the 637x476 label.
I've seen a lot online about sizing a control to match text length, but
nothing about sizing text to match a control. BTW, I don't have to use a
label control - if another control will help accomplish my task, great.
Thanks,
Joe