Hi Mephiston
Try to use the OnMouseMove event.
I don't understand exactly why you need to know if the mouse button is
pressed when it's moving on your control. If you try to catch a DragDrop
session, you should use the appropriate event, for example OnDragEnter,
OnDragOver, etc...
I know that the post was not that well informative but I tried to simplify
the question. I am creating a table like control where each cell is
inheriated from the UserControl Class. To be able to do a selection of
multiple cells i need to detect when the mouse enters a cell and the mouse
button is pressed down. I think i have tried the Drag events but could not
make them work. I do not know why, but it could be that no object is
actually dragged or some thing?
I hope this describes what I want to do a little more clearly and that some
body have a suggestion on how to overcome this problem...
Regards
Thorbjørn