I\'m looking to find out how to automatically set the keyboard focus to a text box in powershell.
I have a script that asks the user to select an option from a drop
Following your code, where I can find a dropdown menu, to give focus to textbox when form is shown I've done:
$objForm.Add_Shown({$objForm.Activate(); $objTextBox.focus()})