I have created a PowerShell GUI that combines 2 pdf documents, then converts it to a .tif, then renames it and finally moves it to its final location.
I would like to use a ListBox to show the actions of the above scripts if this is possible
So in the first ListBox it needs to show the 2 pdf files that are going to be combined.
I cant seem to get it to show any file!
$listBox1_SelectedIndexChanged = {
$listBox1.Text = Get-ChildItem "E:\SIGNEDNOTES" -Filter *.pdf
}
$listBox1_SelectedIndexChanged = {
$rootFolder = "E:\SIGNEDNOTES\"
$subfolders = (Get-ChildItem -Path $rootFolder -Filter *.pdf -Recurse -Directory).FullName
$listBox1 = New-Object System.Windows.Forms.ListBox
$listBox1.Items.AddRange($subfolders)
}


