Drag & Drop, files to a form



I want users of my program to be able to drop files to my program.
Basically i know how to do it. The problem is the following:

My main form contains a lot of controls. I want the user be able to
drop files into my main form wherever they want (with the same
effect). I would love to have something like a "drag preview" just
like Key preview for my form.

The obvious solution to my problem would of course be to give every
control in my form the ability for dropping and redirect it to one
central routine. I would write such code, no problem. But one big part
of my form is a web browser. This stupid control handles dropping
itself. I can switch this off, but then it wont handle dropping at
all. There seems to be no way to interfere with that.

Another idea that i had was to place a transparent panel over my form
so that it gets all drop events. Problem would be of course that i
could not edit anything in my form anymore...

So does anybody have a good idea? Some way to preview drag events for
the form would be the nicest way, but i could not find anything about
it.
.



Relevant Pages

  • Re: President Bush: "A Republican Jimmy Carter"
    ... "Bush has truly become the Republican equivalent of President Jimmy Carter, out of control, dropping in popularity, unable to resume command. ...
    (rec.sport.football.college)
  • President Bush: "A Republican Jimmy Carter"
    ... "Bush has truly become the Republican equivalent of President Jimmy Carter, ... out of control, dropping in popularity, unable to resume command. ...
    (rec.sport.football.college)
  • WebBrowser and DragOver
    ... I'm porting a VB project to DotNet that used the Web Browser control. ... it wrapped in a User Control where I was making use of the UserControl's ... control completely filled the User Control, the user control's drag events ... DragDrop was handled by the wrapper user control. ...
    (microsoft.public.dotnet.framework.windowsforms.controls)
  • Re: Confused! is it any wonder?
    ... Or is that another pin I hear dropping on to the floor yet again? ... God knows. ... You can't control others Jeff, ...
    (uk.religion.christian)
  • Re: Size of Custom Control
    ... I have Size property set in constructor, after InitializeComponent(), or in the InitializeComponent... ... Because the control is completely painted by self, ... Chris Tacke, Embedded MVP ... but the initial size after dropping to the form is allways 200x200px. ...
    (microsoft.public.dotnet.framework.compactframework)

Loading