>Is there a way to know the the width and height of a string in pixels?
Forms have a .TextHeight() and .TextWidth() methods you can call. Or you can use TXTWIDTH() function for the width of a string in a specified font, and the FONTMETRIC() function to determine the height.