kfirba
Well-known member
- Joined
- Dec 29, 2012
- Messages
- 77
- Programming Experience
- 1-3
Hello!
I got a program for movies rental.
In the program, when you start typing something in the search box, I used a Panel to hold the SQL results of the movies name. Everything works perfect.
There is one slightly problem.
If I want to allow the user to scroll with the mouse wheel in the panel that shows the results, I have to set the focus to that panel. But when I'm setting the focus to that panel, I lose my TextBox writing ability and I can't continue writing in the text box.
Let's say I have the following movies:
When I type "D" in the TextBox, It's gonna show me all of the 3 movies. If i want to let the user scroll with the mouse wheel, I will have to set the focus to the Search Result Panel, and then, I can't keep writing in the textbox.
How can I let the user use the mouse wheel to scroll and at the same time, keep him in the TextBox so he can keep writing?
Thanks!
I got a program for movies rental.
In the program, when you start typing something in the search box, I used a Panel to hold the SQL results of the movies name. Everything works perfect.
There is one slightly problem.
If I want to allow the user to scroll with the mouse wheel in the panel that shows the results, I have to set the focus to that panel. But when I'm setting the focus to that panel, I lose my TextBox writing ability and I can't continue writing in the text box.
Let's say I have the following movies:
- Dad
- Doodle
- Daddie
When I type "D" in the TextBox, It's gonna show me all of the 3 movies. If i want to let the user scroll with the mouse wheel, I will have to set the focus to the Search Result Panel, and then, I can't keep writing in the textbox.
How can I let the user use the mouse wheel to scroll and at the same time, keep him in the TextBox so he can keep writing?
Thanks!