Example given ( works fine)
Code:
private void listBox1_DragEnter(object sender, System.Windows.Forms.DragEventArgs e) { // make sure they're actually dropping files (not text or anything else) if( e.Data.GetDataPresent(DataFormats.FileDrop, false) == true ) // allow them to continue // (without this, the cursor stays a "NO" symbol e.Effect = DragDropEffects.All; }
And my code for a CrystalReports viewer
I know the code doesnt do anythine persay but it wont even trigger the event thats what im wondering
Code:
private void crystalReportViewer1_DragEnter(object sender, System.Windows.Forms.DragEventArgs e) { // make sure they're actually dropping files (not text or anything else) if (e.Data.GetDataPresent(DataFormats.FileDrop, false) == true) // allow them to continue // (without this, the cursor stays a "NO" symbol e.Effect = DragDropEffects.All; }




Reply With Quote