Autor Beitrag
AXMD
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 4006
Erhaltene Danke: 7

Windows 10 64 bit
C# (Visual Studio 2019 Express)
BeitragVerfasst: Di 13.05.03 07:46 
Hi,

wie ich Dateien aus dem Windows Explorer auf meiner ganzen Form akzeptiere, weiß ich, aber wie siehts mit einem Drag und Drop auf ein bestimmtes Control aus (z.B. nur eine Listbox)?

AXMD
MathiasSimmack
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Di 13.05.03 07:55 
Guck doch mal, ob das gewünschte Control das selbe Ereignis wie die Form zur Verfügung stellt. :)
toms
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1099
Erhaltene Danke: 2



BeitragVerfasst: Di 13.05.03 08:03 
Hi,

Du kannst die WindowProc der Listbox subclassen und dann auf
die Nachricht WM_DROPFILES reagieren.

Beispiele findest du beim Freund Google oder hier:

www.swissdelphicente...yword&select=and