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 Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Automatically scroll custom container/list control when drag/drop

Status
Not open for further replies.

avarga82

Programmer
May 19, 2003
62
US
I built a custom list control, with autoscroll enabled. It is also Drag & Drop oriented. Question: When a user is dragging something onto the list, but the listitem that needs dropped onto isn't visible, how do I automatically scroll the list up/down when the user hovers the mouse towards the top/bottom of the list, respectively?
 
set a flag on drag enter that the mouse is dragging something in, then on the mouse_move event, check the location of the mouse, if it's close to the top/bottom, scroll the control.

-Rick

VB.Net Forum forum796 forum855 ASP.NET Forum
[monkey]I believe in killer coding ninja monkeys.[monkey]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top