printing - VB.NET Print on each line of a rich textbox separately -


how can print line of richtext , second 1 , on?

something :

e.graphics.drawstring(textbox2.line(0), font, brushes.black, 30.23622, 139.165354) 

edit:

now problem if not press enter text fills line , move on next one, doesn't count line. idea?

you can use each loop this:

for each line in richtextbox1.lines     e.graphics.drawstring(line, font, brushes.black, x, y)     y += e.graphics.measurestring(line, font).height next 

remembering increment y each line height of string


Comments

Popular posts from this blog

gridview - Yii2 DataPorivider $totalSum for a column -

java - Suppress Jboss version details from HTTP error response -

Sass watch command compiles .scss files before full sftp upload -