I am writing a control in C#. I would like to get the size of th text in pixels from the Graphics object. This would be similair to DC.GetTExtExtent in VC++.

I've tried MeasureString but it does not return me what I was expecting.

Does anyone know how to do this? Is there some mode I have to set to get MeasureString to work as I want?