Focus pop-up

This commit is contained in:
Joeri 2026-02-21 14:08:48 +01:00
parent cd617c2900
commit b325d26281

View file

@ -65,6 +65,11 @@ $form.AcceptButton = $btnOK # Enter → OK
$form.CancelButton = $btnCancel # Esc → Cancel $form.CancelButton = $btnCancel # Esc → Cancel
# Show the dialog # Show the dialog
$form.Add_Shown({
$this.Activate()
$txt.Focus()
})
$result = $form.ShowDialog() $result = $form.ShowDialog()
# Handle the users choice # Handle the users choice