DragDrop, Click and DoubleClick on a PictureBox

J

Jesse

Hi --

Newbish question here. I've got a FlowLayoutPanel with a bunch of
PictureBoxes in it. The pictureBoxes need to handle Click, DoubleClick and
DragDrop events.

I handled Click and DoubleClick, no problem. But when I try to use MouseDown
to initiate a dragdrop, I lose my click and doubleClick events. (That is,
every MouseDown initiates a dragDrop, and no Click or DoubleClick event gets
raised at all.)

Can anybody explain the right way to do this, or point me to a complete
example of code that handles all three events for the same object?

Thanks!

(What I'm trying to do is use a FlowLayoutPanel to display a bunch of
pictures side by side, and let the user drag-and-drop them to change the
order.)

--
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top