This method returns the width of a text string as it would be printed in the current font of a Form or PictureBox control.
object.TextWidth(string)
Length of string in terms of the ScaleMode property setting of object.
Use TextWidth to determine the amount of horizontal space required to display the text. If string contains embedded carriage returns, TextWidth returns the width of the longest line.