Home General VB.NET Fill ComboBox with Printers
20 | 05 | 2012
This site has been updated and renewed. You have followed an old link.

Click here to go to the new site

http://www.visiblevisual.com/jupgrade

Fill ComboBox with Printers PDF Print E-mail
User Rating: / 0
PoorBest 
Tutorials

 Code below will fill a combobox named (Combo1) with all available Printers. 

    1 

    2 Public Sub m_GetPrinters(ByRef Combo1 As Object)

    3     '***********************************

    4     '*** Code From VisibleVisual.com ***

    5     '***********************************

    6     Dim pkInstalledPrinters As String

    7 

    8     ' Find all printers installed

    9 

   10     For Each pkInstalledPrinters In PrinterSettings.InstalledPrinters

   11 

   12         Combo1.Items.Add(pkInstalledPrinters)

   13 

   14     Next pkInstalledPrinters

   15 

   16     ' Set the combo to the first printer in the list

   17 

   18     Combo1.SelectedIndex = 0

   19 

   20 End Sub

 

Add comment


Security code
Refresh

This site has been updated and renewed. You have followed an old link.

Click here to go to the new site

http://www.visiblevisual.com/jupgrade