Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MouseMove problem with ListBox.

Status
Not open for further replies.

mp9

Programmer
Sep 27, 2002
1,379
GB
Am using VB6. Have a listbox on a form - the listbox has a vertical scrollbar. Am trying to use the MouseMove event to detect when the cursor is over the edge of the listbox.

My problem: when the mouse moves over the listbox from the right-hand side, the MouseMove event isn't triggered until after the mouse pointer has cleared the listbox's scrollbar and hits the list itself. I need to detect when the mouse pointer is over the right-hand edge of the listbox scrollbar itself...

Any thoughts?
 
justa thought i had may not work..

why not put a hidden frame under the area u want to trigger it and trigger on that instead..

never tried it so may not work
 
Well, this is a possibility and I'll look into it but surely there's a more elegant solution? Or perhaps not?
 

May I ask why you need to do this?
Maybe another solution to what you are trying to do can be figured out.
 
As soon as the mouse pointer is over the right-hand border of the list box I want to change the cursor and also allow the user to resize the width of the list-box by click/dragging the right-hand side.
 
Have you considered using the resize solution offered in thread222-501202?
 
>Have you considered using the resize solution offered

That, and, concerning the mouse pointer, use the MousePointer property of the ListBox
 
I said MousePointer and you wrote "cursor".
That is because I am assuming you mean mouse pointer...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top