Thanks Bonnie,
It works. What I don't understand (I mean: if I really do something wrong or it's VS that work in a such way) is that sometimes it's seems that the code IS there, but it doesn't fire.
It's happened when I moved controls on a form, for example moving a button from the form itself into a panel o a tabcontrol make the button click event's code not fire.
Franco
>Franco,
>
>I'm not sure if a PictureBox has an ItemDrag event (I'm more used to dragging to/from TreeViews and ListViews) ... but in any case, somewhere you need to fire the DoDragDrop() method ... that's the only piece that you're missing I think. I do it from the ItemDrag eventhandler ... there should be something comparable for the PictureBox, or (since I don't see anything obvious there), you could probably fire a DoDragDrop() method from the DragEnter eventhandler.
>
>~~Bonnie
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement