I am trying to print all the contents of a combobox in a program, numbered.
ComboBox1 contents:
Yes
No
Maybe
No Opinion
My code so far for PrintDocument1:
Private Sub PrintDocument1_PrintPage(ByVal sender As System.Object, ByVal e As System.Drawing.Printing.PrintPageEventArgs) Handles PrintDocument1.PrintPage
Dim horizontalPrintPosition As Single
Dim verticalPrintPosition As Single
Dim PrintFont As New Font("Arial", 12)
e.Graphics.DrawString("Info from ComboBox1 would go here", PrintFont, Brushes.Black, horizontalPrintPosition, verticalPrintPosition)
End Sub
For example, the desired output would be:
1. Yes
2. No
3. Maybe
4. No Opinion
Thanks!