[Mono-winforms-list] FileDroping

Aline & Aldric aline.aldric at laposte.net
Wed Feb 14 14:50:53 EST 2007


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



More information about the Mono-winforms-list mailing list