Just to clarify a bit.
Using DrawString with the RectangleF argument causes the string to wrap to
the bounds specified in the Rectangle. Using drawstring with X, Y
coordinates will draw it across the page until it runs out of text.
If you're just trying to layout some text on a surface or a printdocument,
and the font is fixed, check out our product, GDI+ Architect at
www.mrgsoft.com. There's a 15 day trial and you may get all the info you
need trying different things out within the trial period and looking at the
generated System.Drawing code.
--
Justin Weinberg
Designing a PrintDocument? Drawing to forms?
Check out GDI+ Architect at
www.mrgsoft.com
"ray well" <no****@nospam.com> wrote in message
news:u3**************@TK2MSFTNGP11.phx.gbl...
hi,
in order to place a string of text at a specific place on a printed page,
i need to know its width in pixels at a certain font size. in vb6 there used
to be a function something like 'TextWidth' to which you would feed a
string and get its width.
how can i do this in vb net?
thanks
ray
please respond to the list