题目内容
(32 ) 在窗体上先后画 2 个图片框 , 名称分别为 Picture1 和 banana,banana 中添加了香蕉图片 (见图 A-2) ,且将 banana.DragMode 属性设置为 1 。要求程序运行时,可以用鼠标把 banana 拖拽到 Picture1 中(见 图A-3 )。能实现此功能的事件过程是()
A ) Priate Sub Form_DragDrop (Source As Control,X As Single,Y As Single banana.Move
Picture1.Left+X,Picture1.Top+Y )
End Sub
B ) Private Sub banana _DragDrop (Source As Control,X As Single,Y As Single )
Source.Move Picture1.Left+X.Picture1.Top+Y
End Sub
C ) Private Sub Picture1_DragDrop (Source As Control,X As Single,Y As Single )
Source.Move Picture1.Left+X.Picture1.Top+Y
End Sub
D ) Private Sub Picture1_DragDrop (Source As Control,X As Single,Y As Single )
banana.Move banana.Left+X, banana.Top+Y
End Sub
查看答案
搜索结果不匹配?点我反馈
更多问题