Width of string w/specific Font object

hugobooze

Active member
Joined
Jul 22, 2003
Messages
25
Location
Sweden
To use this Graphics.MeasureString you have to instanciate Graphics, but that cant be done. (the constructor is private) How do you use is?
 
Code:
Dim MyGraphics As Graphics = Me.CreateGraphics()

There are several "From" Functions, use the Object Browser to find out the one you want
Dim MyGraphics As Graphics = System.Drawing.Graphics.From*()
 
Last edited by a moderator:
Back
Top