You need to use a graphics object. For example, if its in the Paint event, you can use e.Graphics.MeasureString(). If outside of the Paint event, you can use Me.CreateGraphics().MeasureString() (assuming youre in a form).
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.