Mouse move event in a combo box in vb6

I have items in the combox like this
12-01-2015.rtf
12-25-2015.rtf
12-26-2015.rtf
Yr07-04-2016.rtf
Yr08-01-2016.rtf
Yr08-03-2016.rtf
Yr09-03-2015.rtf
In the combobox
is there any way to get the selected index of items by moving the mouse over them and not clicking them
isnoend2001Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Ryan ChongCommented:
you can try combo1.SelectedIndex

no need to get it via mouseover event...
0
isnoend2001Author Commented:
Where would that be written
Here are some of the events:
Private Sub cboTasks_GotFocus()
Private Sub cboTasks_Click()
Private Sub cboTasks_DropDown()
Private Sub cboTasks_Scroll()
Private Sub cboTasks_DragOver(Source As Control, X As Single, Y As Single, State As Integer)
None seem to do what i want
0
Martin LissOlder than dirtCommented:
A VB6 combobox does not have a mouseover event.
If you want the Index of the selected item do this anywhere in your code.

MsgBox cboTasks.ListIndex

To get the text of the selected item do either of these:
MsgBox cboTasks.Text
MsgBox cboTasks.List(Combo1.ListIndex)
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Martin LissOlder than dirtCommented:
If that doesn't help, please describe in other words what you want to do.
0
isnoend2001Author Commented:
Thanks I am going to use the click event seeing how the combobox does not have mouseover or mousemove event.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.