110,539
社区成员
发帖
与我相关
我的任务
分享
private void Form1_DragEnter(object sender, DragEventArgs e)
{
e.Effect = e.AllowedEffect;
}
private void Form1_DragDrop(object sender, DragEventArgs e)
{
string[] files = e.Data.GetData("FileDrop") as string[];
if (files.Length > 0)
{
pictureBox1.Image = Image.FromFile(files[0]);
}
}