I have the following listbox and would like to add drivers and their versions into it. As of now, nothing is being added and I get a "Cannot find an overload for "Add" and the argument count: "1"" error.
#Driver List
$ListBox1 = New-Object System.Windows.Forms.ListView
$ListBox1.Location = New-Object System.Drawing.Point(150,180)
$ListBox1.AutoSize = $true
$ListBox1.Scrollable = $true
$ListBox1.Text = Get-WmiObject Win32_PnPSignedDriver| select DeviceName, Manufacturer, DriverVersion | ForEach-Object {[void] $ListBox1.Items.Add($_)}
$main_form.Controls.Add($ListBox1)
}
)