drawstring set text width

Hello, I’m test a print of listwiew, (via code … not report)
I’m using this code (and is working fine)

g.drawstring listbox_mylist.cell(i,0),30,80+(lines*g.textHeight)

How can I set a fixed Horizontal text width (in pixels).

Thank you for the support.

Have a look at the documentation. DrawString has 3 parameters. The second one is WrapWidth:

Graphics.DrawString ( Text as String, X as Integer, Y as Integer [,WrapWidth as Integer ] [,Condense as Boolean ] )

Thank you , I will try.