Hi I googled this but I did not realy find too much Here is my situation I Have ListBox and I enabled drag and drop option I add an background worker to do for me somework Well When I drag and drop first time evry thing go ok When I drag and drop se开发者_运维百科conod time I have that problem
Here is my code
if (imageListBox.InvokeRequired)
{
imageListBox.Invoke(new MethodInvoker(delegate {
try
{
imageListBox.Items.Remove(fileInf.Name);
}
catch (Exception)
{
Form2 frm = new Form2();
IntPtr a = frm.Handle;
imageListBox.Items.Remove(fileInf.Name);
}
}));
}
Form this block
catch (Exception)
{
Form2 frm = new Form2();
IntPtr a = frm.Handle;
imageListBox.Items.Remove(fileInf.Name);
}
I've add it when I got the problem but it sem that it does not solve the problem
Any help please ?thanks
精彩评论