Input parameteres to DragOver

Knut Hunstad
Knut Hunstad used Ask the Experts™
on
Hi!

The documentation I have found on DragOver isn't very clear on how to use the parameters. What parts of the DragEventArgs are input and which are output?

I am for the moment concerned with e.AllowedEffects and e.Effect. Is the value of e.Effect upon entering DragOver a hint about which operation is wanted? Or should you set it explicitly every time?

How is the value of AllowedEffects set? Is that only input to DragOver or should that be set in DragOver as well?

It seems that if we want standard cursors, we don't need any GiveFeedbackEventHandler?

Thanks for any help!

Best regards,

Knut
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
High School Computer Science, Computer Applications, Digital Design, and Mathematics Teacher
Top Expert 2009
Commented:
AllowedEffects is what the source of the drag is suggesting you do.  Effect is what you set in the DragOver() event and are authorizing to occur.  If you only want the standard cursors then you don't need to deal with the GiveFeedbackEventHandler() event.

Author

Commented:
Thank you!

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial