question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support IDragSourceHelper/IDragTargetHelper?

See original GitHub issue

These two interfaces are used to support enhanced drag-and-drop support, including (most importantly for me) the ability to specify a custom image to be displayed under the cursor during the drag. While this can be done in C# today by using COM interop, you have to roll your own IDataObject implementation to do so, as the default Windows Forms one does not support setting arbitrary COM-based private formats into the data object, per Windows requirements. Would it be possible to update the Windows Forms DataObject class to enable this? (It would be even better if there would be higher-level code added to obviate the need to do custom COM interop to use thesee features, but I do not know what the API design for that would look like.) Thanks!

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
willibrandoncommented, Oct 18, 2022

Hi @wjk - We added support for drag images and drop descriptions, available since .NET 7 RC1. A sample program can be found here.

The drag image and drop description will be displayed if DragEventArgs.DropImageType is set to a value greater than DropImageType.Invalid. The drag image bitmap can be specified using the Control.DoDragDrop(Object, DragDropEffects, Bitmap, Point, Boolean) method or by setting GiveFeedbackEventArgs.DragImage property during the Control.GiveFeedback event.

Please let me know if you get a chance to test it and if so, any feedback is appreciated. Thanks.

1reaction
dreddy-workcommented, Feb 17, 2022

We have similar proposal for drag events showing underlying image here: https://github.com/dotnet/winforms/pull/6576.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Export a SupportAssist Collection over iDRAC7 and iDRAC8
How to export the Tech Support Report (TSR) / SupportAssist Collection over the Dell iDRAC7 & iDRAC8 user interface.
Read more >
Support - ResourceMate® Library Cataloguing Software
We can help you to make the most out of ResourceMate®! Our knowledgeable support staff are available from Monday 9AM to Friday 5...
Read more >
Integrated Library System Support
We provide every customer with system critical support 24 hours a day, seven days a week, 365 days a year. Innovative Interfaces is...
Read more >
IDRSolutions Support Documentation
This is the support site for IDRSolutions products. Here you can find tutorials, technical documents, release notes and FAQs. Everything you need to...
Read more >
Support | R4 API
Financial Support resources include the Coverage, CoverageEligibilityRequest, CoverageEligibilityResponse, EnrollmentRequest, and EnrollmentResponse ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found