int x=int w =Convert.ToInt32(Math.Ceiling(g.MeasureString("My string", s).Width)); //f is the object of Font //g is the object of Graphics
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)