我尝试下一个方法:
this.AllowDrop = true;
this.DragEnter += new System.Windows.Forms.DragEventHandler(Form_DragEnter);
void Form_DragEnter(object sender, DragEventArgs e)
{
// here I need to check whether it access .mdb format
if (e.Data.GetDataPresent(DataFormats.FileDrop))
{
e.Effect = DragDropEffects.Copy;
}
else
{
e.Effect = DragDropEffects.None;
}
}
怎么查?在DataFormats.
没有数据库格式