I am trying to print all the contents of a combobox in a program.
For example:
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
My desired output would be:
- Combo Box -
Yes
No
Maybe
No opinion
-- -- - -- --
Thanks!