Hi, I would like to get the width of a string.
Given x & y coordinates I would like to draw a string centered at x, y. I would also like to create a rectangle that surrounds this string.
The problem is that I would like to calculate the widths and coordinates of all of the shapes outside of the paint event and the MeasureString method only seems to work inside the paint event.
Thanks!
Given x & y coordinates I would like to draw a string centered at x, y. I would also like to create a rectangle that surrounds this string.
The problem is that I would like to calculate the widths and coordinates of all of the shapes outside of the paint event and the MeasureString method only seems to work inside the paint event.
Thanks!