Skip to content

Instantly share code, notes, and snippets.

@alainassaf
Created February 7, 2017 19:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alainassaf/27fa6430208abfcb0512005e24c5e51d to your computer and use it in GitHub Desktop.
Save alainassaf/27fa6430208abfcb0512005e24c5e51d to your computer and use it in GitHub Desktop.
Code snippet 3 from run-delprof2.ps1
$wgObjForm.Controls.Add($objListBox)
$wgObjForm.Topmost = $True
$result = $wgObjForm.ShowDialog()
if ($result -eq [System.Windows.Forms.DialogResult]::OK) {
$workergroup = $objListBox.SelectedItem
} else {
exit 1
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment