Input parameteres to DragOver

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
LVL 8
Knut HunstadAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Mike TomlinsonHigh School Computer Science, Computer Applications, and Mathematics TeachersCommented:
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.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Knut HunstadAuthor Commented:
Thank you!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Development

From novice to tech pro — start learning today.