Option ExplicitContoh penggunaan mengenai printer yang terinstall
Public Function ListAllPrinters(lst As Control)
Dim oPrint As Object
For Each oPrint In Printers
List1.AddItem oPrint.DeviceName
Next
End Function
Private Sub Form_Load()
ListAllPrinters List1
End Sub