Y yamus Member Local time Today, 18:42 Joined Aug 12, 2020 Messages 81 Oct 10, 2020 #1 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
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
theDBguy I’m here to help Staff member Local time Today, 10:42 Joined Oct 29, 2018 Messages 22,542 Oct 10, 2020 #2 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
Y yamus Member Local time Today, 18:42 Joined Aug 12, 2020 Messages 81 Oct 10, 2020 #3 theDBguy said: If you have other controls on the form, you can send the focus to one of them. For example: Me.ControlName.SetFocus Click to expand... Hello Thanks for the suggestion but it did not help Now the clicked listbox row and the other control are both highlighted
theDBguy said: If you have other controls on the form, you can send the focus to one of them. For example: Me.ControlName.SetFocus Click to expand... Hello Thanks for the suggestion but it did not help Now the clicked listbox row and the other control are both highlighted
isladogs MVP / VIP Local time Today, 18:42 Joined Jan 14, 2017 Messages 18,837 Oct 10, 2020 #4 That's because the listbox item is still selected. If you want to deselect it then add the code line: Code: Me.YourListboxName=Null
That's because the listbox item is still selected. If you want to deselect it then add the code line: Code: Me.YourListboxName=Null
theDBguy I’m here to help Staff member Local time Today, 10:42 Joined Oct 29, 2018 Messages 22,542 Oct 10, 2020 #5 yamus said: Hello Thanks for the suggestion but it did not help Now the clicked listbox row and the other control are both highlighted Click to expand... Hi. Sorry, I guess I misunderstood your requirement.
yamus said: Hello Thanks for the suggestion but it did not help Now the clicked listbox row and the other control are both highlighted Click to expand... Hi. Sorry, I guess I misunderstood your requirement.
Y yamus Member Local time Today, 18:42 Joined Aug 12, 2020 Messages 81 Oct 10, 2020 #6 theDBguy said: Hi. Sorry, I guess I misunderstood your requirement. Click to expand... Thank you anyway. I tried @isladogs suggestion and it worked fine.
theDBguy said: Hi. Sorry, I guess I misunderstood your requirement. Click to expand... Thank you anyway. I tried @isladogs suggestion and it worked fine.
Y yamus Member Local time Today, 18:42 Joined Aug 12, 2020 Messages 81 Oct 10, 2020 #7 isladogs said: That's because the listbox item is still selected. If you want to deselect it then add the code line: Code: Me.YourListboxName=Null Click to expand... It worked fine. Thank you very much
isladogs said: That's because the listbox item is still selected. If you want to deselect it then add the code line: Code: Me.YourListboxName=Null Click to expand... It worked fine. Thank you very much
theDBguy I’m here to help Staff member Local time Today, 10:42 Joined Oct 29, 2018 Messages 22,542 Oct 10, 2020 #8 yamus said: Thank you anyway. I tried @isladogs suggestion and it worked fine. Click to expand... Cool. Good luck with your project.
yamus said: Thank you anyway. I tried @isladogs suggestion and it worked fine. Click to expand... Cool. Good luck with your project.