[Solved] Printing all Labels in a Form VB.net


See this page for a breakdown on vb.net printing methods:

https://social.msdn.microsoft.com/Forums/en-US/72b5a038-912d-4455-929d-89eeb9984d7c/how-do-i-print-a-form-in-vbnet?forum=Vsexpressvb

To get the text out of all your labels, use this code:

For Each ctrl As Control In Me.Controls
    If TypeOf (ctrl) Is Label Then
        Dim newLine As String = ctrl.Name & ": " & ctrl.Text
        'Process newLine as you see fit
    End If
Next

solved Printing all Labels in a Form VB.net