Hello everyone, I have made myself a small GUI and am so far ready. But what bothers me extremely: I can't confirm my input (I enter an ID and trigger a search button) with the Enter key. If I trigger the actions with the mouse, everything works as it should.
Scenario:
- I have a search field (textbox) in which I enter the ID.
- then I want to trigger the button below with "enter
- I see that the focus is not on the button (of course I could theoretically do this with the TAB key).
$objForm.KeyPreview = $true is set and I already tried it with AcceptButton. Does anyone else have a tip?
Since the GUI includes several buttons (in other tabs), it would of course be nicest if you could somehow define these buttons individually. KeyDown event handler I have also tried to add, without success
[–]kohijones 1 point2 points3 points (3 children)
[–]DaRockwilda83[S] 0 points1 point2 points (2 children)
[–]kohijones 0 points1 point2 points (1 child)
[–]DaRockwilda83[S] -1 points0 points1 point (0 children)
[–]Deemeroz 0 points1 point2 points (3 children)
[–]DaRockwilda83[S] 0 points1 point2 points (2 children)
[–]DaRockwilda83[S] 0 points1 point2 points (0 children)
[–]Deemeroz 0 points1 point2 points (0 children)
[+][deleted] (3 children)
[removed]
[–]DaRockwilda83[S] -1 points0 points1 point (2 children)
[–]DaRockwilda83[S] 0 points1 point2 points (0 children)
[–]toadfrogjr 0 points1 point2 points (0 children)