Drag and Drop woher kommts

Hallo

Wie kann ich beim Drag and Drop abfragen woher es kommt und welches Format es hat?

mfg

Michael

Hallo Michael

Wie kann ich beim Drag and Drop abfragen woher es kommt und
welches Format es hat?

Ich denke es geht mehr ums Drop.

Schau dir mal das an:
Beim Drop wird ja ein Event ausgelöst, also zum Anschauen:
System.Windows.Forms.DragEventArgs e = new System.Windows.Forms.DragEventArgs;

unter e.Data findest dann:
e.Data.GetData(format,autoconvert); //holt die Daten
e.Data.GetFormats(); //Liste möglicher Formate
e.Data.GetDataPresent(format,autoconvert); //prüft ob format stimmt

Wegen der Überladungen und dem Umfeld, das ich nicht kenne, mal ausprobieren. Woher die Daten kommen? Keine Ahnung!

mfg

Dirk