Drag and Drop not working in C# Winforms Application
问题 I am trying to create a windows form onto which I can drop a file/folder. I have the following code in a WinForms app public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void Form1_DragEnter(object sender, DragEventArgs e) { Debug.Print("DragEnter"); } private void Form1_DragDrop(object sender, DragEventArgs e) { MessageBox.Show("Dropped!"); } } I have set the AllowDrop property to true. I've tried running the application in debug within Visual Studio. Based