Have a "Search" textbox. after clicking a button i like to clear the search and set it to Focus (so i dont have to select by mouse).
The below clears the textbox but does not focus it. Any idea ??
$txtsearch.text=""
$txtSearch.Focus
textbox Focus
Forum rules
DO NOT POST LICENSE NUMBERS, ACTIVATION KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
DO NOT POST LICENSE NUMBERS, ACTIVATION KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
textbox Focus
Focus is a method. Try the following: $txtSearch.Focus() David
David
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.
textbox Focus
worked.
Think the Intellisense should put the after i select the method or i'm asking too much
Think the Intellisense should put the after i select the method or i'm asking too much