Populate a combo box with installed printers

I have had a look around for this and although it does seem possible i cant seem to find it. I am using VB2005.net and i want to populate a combobox with a list of installed printers. How can i do it.
Most things i have read say start with DIM DEV as PRINTER but printer is not avaliable as an option

Any ideas as this is urgent
Who is Participating?
DhaestConnect With a Mentor Commented:
Loop through the PrinterSettings.InstalledPrinters collection adding the printers to a ComboBox
Imports System.Drawing.Printing
Private Sub Form1_Load(ByVal sender As Object, ByVal e As _
    System.EventArgs) Handles MyBase.Load
    Dim pkInstalledPrinters As String
    ' Find all printers installed
    For Each pkInstalledPrinters In _
    Next pkInstalledPrinters
    ' Set the combo to the first printer in the list
    cboInstalledPrinters.SelectedIndex = 0
End Sub

Open in new window

bostonsteAuthor Commented:
Thank you that was perfect
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.