file drop in winform

drop and drag in winform is not really convenient comparing with wxPython.

 

As the target of drop, you must implement two functions to response two events separately:

1: dropenter

2: dragdrop

 

in the functions of responding dragdrop

you may write:

array<File^>^ fileList = static_cast<array<File^>^>(e->Data->GetData(DataFormats::FileDrop);

 

and then do what yo want to do to this  file list.

 

 

你可能感兴趣的:(WinForm,wxPython)