Focus pop-up
This commit is contained in:
parent
cd617c2900
commit
b325d26281
1 changed files with 5 additions and 0 deletions
|
|
@ -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 user’s choice
|
# Handle the user’s choice
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue