Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - milos

Pages: 1
1
Developers' Area / Re: Dropping files into Muscbee
« on: February 08, 2021, 02:44:12 AM »
Thanks for reply @phred; I've actually got it...
so Musicbee won't accept dropped mp3 file if I use

Code
DragDrop.DoDragDrop(this, obj, DragDropEffects.All);
or
Code
DragDrop.DoDragDrop(this, obj, DragDropEffects.Copy | DragDropEffects.Move);
regardless if in addition I hold ctrl/shift/alt

but it will accept
Code
DragDrop.DoDragDrop(this, obj, DragDropEffects.Copy);

I was afraid I'd have to deal with some complicated  memorystreams, so this is good.
Cheers

2
Developers' Area / Dropping files into Muscbee
« on: February 07, 2021, 11:45:37 PM »
What format does the program accept as a drop? When trying to drop files as FileDrop the program shows crossed circle. Other programs don't have issues accepting dropped files from my file manager

Code
string dataFormat = DataFormats.FileDrop;
DataObject obj = new DataObject();
obj.SetFileDropList(path_to_file);
DragDrop.DoDragDrop(this, obj, DragDropEffects.All);

Pages: 1