[Mono-winforms-list] FileDroping
Jackson Harper
jackson at ximian.com
Fri Feb 16 12:58:03 EST 2007
Hello,
There were two problems here. The first one is that you should be
adding a string [] with the filenames you want to the data object, not a
string collection. StringCollection doesn't seem to work for me on
windows, does this work for you on windows, or did you see it in a
tutorial online?
Second problem was a bug in mono, that I have just fixed and checked
into SVN.
Jackson
On Wed, 2007-02-14 at 20:50 +0100, Aline & Aldric wrote:
> Hello,
> I tried to send a file(image) to an external application (oowriter) with
> the Clipboard or with a drag and drop.
> But it don't seem to work. Here is what i'm doing :
>
> With Clipboard :
> System.Collections.Specialized.StringCollection Coll;
> Coll = new
> System.Collections.Specialized.StringCollection();
> Coll.Add(Fic);
> Clipboard.SetFileDropList(Coll);
>
> With Drag and drop:
> System.Collections.Specialized.StringCollection coll;
> coll = new System.Collections.Specialized.StringCollection();
> coll.Add(Fic);
>
> DataObject dto = new DataObject();
> dto.SetData(DataFormats.FileDrop, coll);
> Ctrl.DoDragDrop(dto, DragDropEffects.Move);
>
> Is the problem in my code, or it's internal to mono (1.2.3) ?
>
> thanks
>
> AlicVB
>
> _______________________________________________
> Mono-winforms-list maillist - Mono-winforms-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-winforms-list
More information about the Mono-winforms-list
mailing list