Drag and Drop between Instances of the same Windows Forms Application

后端 未结 4 426
一生所求
一生所求 2020-12-08 03:23

I have created a small Windows Forms test application to try out some drag/drop code. The form consists of three PictureBoxes. My intention was to grab a picture from one Pi

4条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-08 03:54

    Just out of curiousity, in the DragDrop method, have you tried testing whether you can get the bitmap image out of the DragEventArgs at all? Without doing the sender cast? I'm wondering whether the picturebox object isn't serializable, which causes the issue when you try to use the sender in a different app domain...

提交回复
热议问题