DragDrop from Explorer
Posted: Wed Sep 17, 2014 5:53 pm
Hello GDPicture Community,
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:
Furthermore,(i think as a Result of that) a hover at the new Item (If i comment out the lines like above) causes a "first chance exception of type 'System.NullReferenceException'" in the
Any advice ?
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 ?