After drag and drop control scrolls to beginning

Microsoft Visual studio professional 201...
October 18, 2013 at 12:58:08
Specs: Windows 7, 2.4ghz xenon
I have made a custom control which has groups of rows and components inside of those rows. When a control is added everything works as it should. But when a control is moved from one row to another the flow layout panel scrolls to all the way to the left. This seems to happen after the DragDrop event is done. Would a control re-painting it self cause it to scroll to the beginning? Any suggestions to help solve this would be greatly appreciated.


Is there a way to try and see what is happening after that drag and drop event?

message edited by rocky3598


See More: After drag and drop control scrolls to beginning

Report •

#1
October 23, 2013 at 05:43:37
This is one of those, "It's hard to see what you're doing if you don't show us," moments.

Would a control re-painting it self cause it to scroll to the beginning?
There's nothing preventing it. look at your OnPaint code.

Is there a way to try and see what is happening after that drag and drop event?
Easiest way is to put a breakpoint in your DragDrop handler.

How To Ask Questions The Smart Way


Report •
Related Solutions


Ask Question