title: Does TextBox use GDI or GDI+
body: <p>Basically, I want to measure the text size in a TextBox, and I found out that TextRenderer gives me the correct values, while Graphics would give me wrong values. So that seems like TextBox should be using GDI to draw text, right?</p>
  
  <p>However, wherever I read, I see that it's supposed to use GDI+. For example: </p>
  
  <ul>
  <li>Here <a href="http://microsoft.public.dotnet.framework.windowsforms.controls.narkive.com/yoHKjPut/text-rendering-accuracy-problem-in-textbox-richtextbox" rel="nofollow noreferrer">http://microsoft.public.dotnet.framework.windowsforms.controls.narkive.com/yoHKjPut/text-rendering-accuracy-problem-in-textbox-richtextbox</a> it says that TextBox and Buttons use GDI+. </li>
  <li>Here <a href="https://stackoverflow.com/questions/1203087/why-is-graphics-measurestring-returning-a-higher-than-expected-numberit">Why is Graphics.MeasureString() returning a higher than expected number?</a> it says that default is "compatibility mode" that draws in GDI+</li>
  </ul>
  
  <p>So why is it that I'm getting consistent results with TextRenderer and not with Graphics when it's supposed to be other way around?</p>