textbox & printing question

RonR

Well-known member
Joined
Nov 23, 2007
Messages
82
Programming Experience
5-10
how can I read one line at a time from a textbox and send it to the printer??
note: it is a multiline textbox
 
reading the multiline textbox line by line:

VB.NET:
        Dim s As String

        For Each s In TextBox1.Lines
            'do something with each line
            MessageBox.Show(s)
        Next

HTH
 
Back
Top