Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How many pixels???

Status
Not open for further replies.

Axien

Programmer
Aug 10, 2002
7
LT
Does anybody knows how to count string lenght of pixels???
The problem is that I need to draw string witch is right aligned to one of my reports table's cell.

axien
 
use one of the drawstring overloads that allow you to draw withing a rectangle, and apply a format (i suggest right-aligned ;) ). set the rectangle's height to 0 if you wish, it'll allow all text to be shown; and, of course, set the width such that the box finieshes up against the end of the cell.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top