Found this article :
And I have followed the code on that to suit my needs so that I can load printer name, print job name and owner name into a listview and I have installed 2 fake printers and paused them both and send a print job to each and my code seems to work aside from one bug that I have noticed, if I take the lstJobs.List.Clear command out It works the first time I click the button but if I keep clicking it obviously keeps re adding it in and it duplicates itself, yet when I put it back into the code you only see one of the print jobs from one of the printers and not the other one.
Here is the code that I have so far ( Yes I have made a reference to the systems management ) :
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim oq As New System.Management.ObjectQu
T * FROM Win32_PrintJob") '
Dim query1 As New ManagementObjectSearcher(o
Dim queryCollection1 As ManagementObjectCollection
Dim mo As ManagementObject
For Each mo In queryCollection1
Dim lvi As ListViewItem
.Sorting = SortOrder.Ascending
lvi = .Items.Add(mo("DriverName"
Me.Label1.Text = "ListItem(0).SubItems: " & .Items(0).SubItems.Count
End Sub 'Main
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
er", 200, HorizontalAlignment.Center
ent", 200, HorizontalAlignment.Center
", 200, HorizontalAlignment.Center