在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
private void Form1_DragDrop(object sender, DragEventArgs e) { string path = ((System.Array)e.Data.GetData(DataFormats.FileDrop)).GetValue(0).ToString(); listBox1.Items.Add(path);//ᅬᅯᅧ홰ᅣᄐ탸ᅡᄐ } private void Form1_DragEnter(object sender, DragEventArgs e) { if (e.Data.GetDataPresent(DataFormats.FileDrop)) e.Effect = DragDropEffects.Link; else e.Effect = DragDropEffects.None; } private void button1_Click(object sender, EventArgs e) { if (listBox1.Items.Count == 0) { MessageBox.Show("no file name "); } else { func_SearchFiles(sender, e);//取得文件名 } }
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论