title: How to set font size dynamically in c# local report(rdlc - WinForms) to fit textbox dimensions?
body: <p>How can I set font size dynamically in textbox control on report so the content of textbox fit into its dimensions?
  My idea was to decrease font size in loop based on value of next function:</p>
  
  <pre><code>Private Function IsContentsBiggerThanTextBox(ByVal textBox As TextBox) As Boolean
      Dim size As Size = TextRenderer.MeasureText(textBox.Text, textBox.Font)
      Return ((size.Width &gt; textBox.Width)  OR (size.Height &gt; textBox.Height))
  End Function
  </code></pre>
  
  <p>The problem is I don't know how to pass reference of report textbox to function.</p>