i also have a Problem using Drag&Drop. I Managed using Drag and Drop intern in my Application and in all Layers, DragDrop is allowed.
When i use Drag & Drop from the Explorer (i.e. Desktop), i got a ErrorCode -1073740777. It appears, after i uses this.thumbnailEx1.AddItemFromFile(file) and tries to Refresh or Reload the Thumbnails. Here is my Code:
Code: Select all
if (e.Data.GetDataPresent(DataFormats.FileDrop))
{
string[] files = (string[])e.Data.GetData(DataFormats.FileDrop);
foreach (string file in files)
{
this.thumbnailEx1.AddItemFromFile(file);
this.thumbnailEx1.LoadNewThumbnails();
}
for (int i = 0; i < this.thumbnailEx1.ItemCount; i++)
{
Console.WriteLine("Element " + i); // Claims that there's now a new item in the List
}
//this.thumbnailEx1.Refresh(); // cause ErrorCode 1073740777
// this.thumbnailEx1.ReloadThumbnails(); // causes ErrorCode 1073740777
this.thumbnailEx1.Update();
}
Code: Select all
Page.Display(gdViewer1, Options);
Any advice ?