title: Drag and Drop to a hosted Browser control
body: <p>I have a WinForms program written on .NET 2 which hosts a webbrowser control and renders asp.net pages from a known server.</p>
  
  <p>I would like to be able to drag, say, a tree node from a treeview in my winforms app into a specific location in the hosted web page and have it trigger a javascript event there.
  Currently, I can implement the <code>IDocHostUIHandler</code> interface and getting drag\drop events on the browser control, then call <code>Navigate("javascript:fire_event(...)")</code> on the control to execute a script on the page. However, I want this to work only when I drop data on a <em>specific</em> part of the page.</p>
  
  <p>One solution, I suppose, would be to bite the bullet and write a custom browser plugin in the form of an activex control, embed that in the location I want to drop to and let that implement the needed drag\drop interfaces.</p>
  
  <p>Would that work?
  Is there a cleaner approach? Can I take advantage of the fact that the browser control is hosted in my app and provide some further level of interaction?</p>