Solved Remove focus from ListBox

yamus

Member
Local time
Today, 18:42
Joined
Aug 12, 2020
Messages
81
Hi
I have a ListBox that shows search results based on some criteria
What i want is that after each click on the search button (new search) to remove the focus (highlight) generated on the listbox after clicking on it
Thanks
 
If you have other controls on the form, you can send the focus to one of them. For example:

Me.ControlName.SetFocus
 
If you have other controls on the form, you can send the focus to one of them. For example:

Me.ControlName.SetFocus
Hello
Thanks for the suggestion but it did not help 😁
Now the clicked listbox row and the other control are both highlighted
 
That's because the listbox item is still selected.
If you want to deselect it then add the code line:

Code:
Me.YourListboxName=Null
 
Hello
Thanks for the suggestion but it did not help 😁
Now the clicked listbox row and the other control are both highlighted
Hi. Sorry, I guess I misunderstood your requirement.
 

Users who are viewing this thread

Back
Top Bottom