{"action":"created","issue":{"url":"https://api.github.com/repos/cefsharp/CefSharp/issues/1593","repository_url":"https://api.github.com/repos/cefsharp/CefSharp","labels_url":"https://api.github.com/repos/cefsharp/CefSharp/issues/1593/labels{/name}","comments_url":"https://api.github.com/repos/cefsharp/CefSharp/issues/1593/comments","events_url":"https://api.github.com/repos/cefsharp/CefSharp/issues/1593/events","html_url":"https://github.com/cefsharp/CefSharp/issues/1593","id":133720992,"number":1593,"title":"How to implement drag & drop with CefSharp WinForms","user":{"login":"hgupta9","id":6797866,"avatar_url":"https://avatars.githubusercontent.com/u/6797866?v=3","gravatar_id":"","url":"https://api.github.com/users/hgupta9","html_url":"https://github.com/hgupta9","followers_url":"https://api.github.com/users/hgupta9/followers","following_url":"https://api.github.com/users/hgupta9/following{/other_user}","gists_url":"https://api.github.com/users/hgupta9/gists{/gist_id}","starred_url":"https://api.github.com/users/hgupta9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hgupta9/subscriptions","organizations_url":"https://api.github.com/users/hgupta9/orgs","repos_url":"https://api.github.com/users/hgupta9/repos","events_url":"https://api.github.com/users/hgupta9/events{/privacy}","received_events_url":"https://api.github.com/users/hgupta9/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-02-15T14:07:26Z","updated_at":"2016-02-16T08:40:39Z","closed_at":"2016-02-15T20:44:53Z","body":"I'm currently intercepting the `OnDragEnter` event that CefSharp provides, but I want to handle the `OnDragDrop` event which does not exist. I am already handling the form's drop drop event and I've set `form.AllowDrop = true`, but since CEF intercepts the drag, I cannot handle it in the form!\r\n\r\nIn `IDragHandler.OnDragEnter`:\r\n- If I return `true`, then the user cannot drag anything on the browser (and I don't get the event);\r\n- If I return `false`, then the user can drag a file, but CefSharp handles it internally! (and I don't get the event)\r\n\r\nSo either ways I'm jammed. Is there _any_ way to properly implement drag & drop in CefSharp, such that CefSharp/CEF does NOT do its default behaviour, and such that I get the DROP event handler. (or similar)\r\n\r\nAlternatively, if CefSharp can use [RevokeDragDrop](https://msdn.microsoft.com/en-us/library/windows/desktop/ms692643(v=vs.85).aspx) (also [here](http://www.magpcss.org/ceforum/viewtopic.php?f=6&t=10548)) in the `OnDragEnter` event, (in response to `AllowDrop = false`) then I can handle the drop event on the form itself.\r\n\r\nAlternatively, If I can get access to [these CEF flags](https://bitbucket.org/chromiumembedded/cef/issues/644/cef3-add-support-for-disabling-drag-drop) then I can disable the internal drag/drop entirely and so fallback to the form's handling. **Edit:** Not possible in CEF3."},"comment":{"url":"https://api.github.com/repos/cefsharp/CefSharp/issues/comments/184576854","html_url":"https://github.com/cefsharp/CefSharp/issues/1593#issuecomment-184576854","issue_url":"https://api.github.com/repos/cefsharp/CefSharp/issues/1593","id":184576854,"user":{"login":"hgupta9","id":6797866,"avatar_url":"https://avatars.githubusercontent.com/u/6797866?v=3","gravatar_id":"","url":"https://api.github.com/users/hgupta9","html_url":"https://github.com/hgupta9","followers_url":"https://api.github.com/users/hgupta9/followers","following_url":"https://api.github.com/users/hgupta9/following{/other_user}","gists_url":"https://api.github.com/users/hgupta9/gists{/gist_id}","starred_url":"https://api.github.com/users/hgupta9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hgupta9/subscriptions","organizations_url":"https://api.github.com/users/hgupta9/orgs","repos_url":"https://api.github.com/users/hgupta9/repos","events_url":"https://api.github.com/users/hgupta9/events{/privacy}","received_events_url":"https://api.github.com/users/hgupta9/received_events","type":"User","site_admin":false},"created_at":"2016-02-16T08:40:39Z","updated_at":"2016-02-16T08:40:39Z","body":"Okay thanks I'll check there."}}