Ok, I know how to get the size in pixels of a string using measureString...

Here's my problem:

I need to resize text to fit inside the dimensions of my user control button.

I need to be able to have my user control automatically determine the appropriate font size based on how wide or high the control is.

This is what I got so far:
VB Code:
  1. 'get size of string to be printed
  2. stringSize = graphics.MeasureString(text, Font)
  3.  
  4. 'if size of string to be printed is larger than the width of the control
  5. If stringSize > Width Then
  6.  
  7. 'need to implement code that will
  8. 'set the font size to something that will
  9. 'fit within the Width of the control
  10.  
  11. 'ie..  Font.Size = Width   (which obviously isnt it, but makes it clear my intentions)