Hi,
I have problem for implementing drag & drop on syntaxEdit. I’ve set:
syntaxEdit1.AllowDrop = true;
and:
private void syntaxEdit1_DragEnter(object sender, DragEventArgs e)
{
if (e.Data.GetDataPresent(DataFormats.FileDrop))
e.Effect = DragDropEffects.Copy; // Okay
else
e.Effect = DragDropEffects.None; // Unknown data, ignore it
}
and:
private void syntaxEdit1_DragDrop(object sender, DragEventArgs e)
{
MessageBox.Show("DROPPED!");
}
But after dropping a file into syntaxEdit, it seems that the DragDrop event is not fired!
Am I doing something wrong?
Thanks in advance