L
Lloyd Dupont
I try to implement Drag & Drop in my application.
It works rather well except I'm not able to drag in other application like,
say, word.
I tryed to look at what IE does and when I drag animage from IE it has the
follwoing formats:
[0]: "UntrustedDragDrop"
[1]: "FileDrop"
[2]: "FileNameW"
[3]: "FileName"
[4]: "DeviceIndependentBitmap"
[5]: "HTML Format"
In my code I created my 'drag value' as follow:
byte[] imageData = ....;
Bitmap bmp = new Bimtap(new MemoryStream(imageData));
DataObject dao = new DataObject();
dao.SetData(DataFormats.Bitmap, bmp);
dao.SetData("DeviceIndependentBitmap", imageData);
But that doesn't work....
Beside when I drag from IE the form DeviceIndependantBitmap is a stream,
whereas with my code I generetae either a byte[] or a proxy
what could I do?
I would like to drag image from my application without having to save them
to a file....
It works rather well except I'm not able to drag in other application like,
say, word.
I tryed to look at what IE does and when I drag animage from IE it has the
follwoing formats:
[0]: "UntrustedDragDrop"
[1]: "FileDrop"
[2]: "FileNameW"
[3]: "FileName"
[4]: "DeviceIndependentBitmap"
[5]: "HTML Format"
In my code I created my 'drag value' as follow:
byte[] imageData = ....;
Bitmap bmp = new Bimtap(new MemoryStream(imageData));
DataObject dao = new DataObject();
dao.SetData(DataFormats.Bitmap, bmp);
dao.SetData("DeviceIndependentBitmap", imageData);
But that doesn't work....
Beside when I drag from IE the form DeviceIndependantBitmap is a stream,
whereas with my code I generetae either a byte[] or a proxy
what could I do?
I would like to drag image from my application without having to save them
to a file....