Autocomplet select event

Ask your PowerShell-related questions, including questions on cmdlet development!
Forum rules
Do not post any licensing information in this forum.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
This topic is 5 years and 11 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked
User avatar
KONIKPK
Posts: 1
Last visit: Thu Apr 19, 2018 2:53 am

Autocomplet select event

Post by KONIKPK »

Hi all

I building script for testing TNS connection.
Is there some event to textbox.autocomplete select ?
I load tnsnames to autocomplet source. So user can test only DB from tnsnames.

I need do something after user select DB from autocomplet textbox.

now I use $textbox_TextCahnged but this run all time when textbox change.
I want to run it only when user select from autocomplet.
jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 times

Re: Autocomplet select event

Post by jvierra »

I would suggest using an auto-complete list or combo box and use the "SelectedIndexChanged" event to detect the selection.

The "Validated" event of the textbox is how you could do it with a text box.
This topic is 5 years and 11 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked