private void pictureBox1_MouseMove(object sender, MouseEventArgs e)
{
PictureBox pictureBox = sender as PictureBox;
if ((e.Button & MouseButtons.Left) == MouseButtons.Left)
{ DataObject dataObject = new DataObject();
string fileName = pictureBox.ImageLocation.ToString();
string[] files = new string[1] { fileName }; DoDragDrop(new DataObject(DataFormats.FileDrop, files), DragDropEffects.Move /* | DragDropEffects.Link */);
}
}
一直出错,请教各位大侠指教下
{
PictureBox pictureBox = sender as PictureBox;
if ((e.Button & MouseButtons.Left) == MouseButtons.Left)
{ DataObject dataObject = new DataObject();
string fileName = pictureBox.ImageLocation.ToString();
string[] files = new string[1] { fileName }; DoDragDrop(new DataObject(DataFormats.FileDrop, files), DragDropEffects.Move /* | DragDropEffects.Link */);
}
}
一直出错,请教各位大侠指教下
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货