在窗体上先后画2个图片框,名称分别为Picture1和banana,banana中添加了香蕉图片(见图1),且将banana.DragMode属性设置为1。要求程序运行时,可以用鼠标把banana拖拽到Picture1中(见图2)。能实现此功能的事件过程是()A.Priate Sub Form_DragDrop(Source As Control,X As Single,Y As Single banana.Move Picture1.Left+X,Picture1.Top+Y)End SubB.Priv

题目

在窗体上先后画2个图片框,名称分别为Picture1和banana,banana中添加了香蕉图片(见图1),且将banana.DragMode属性设置为1。要求程序运行时,可以用鼠标把banana拖拽到Picture1中(见图2)。能实现此功能的事件过程是()

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


相似考题
更多“在窗体上先后画2个图片框,名称分别为Picture1和banana,banana中添加了香蕉图片(见图1),且 ”相关问题
  • 第1题:

    ( 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


    正确答案:C

  • 第2题:

    在窗体上建立一个驱动器列表框、目录列表框、文件列表框、图片框、文本框。要求程序运行后,驱动器列表框Drive1的默认驱动器设置为e盘,选择File1中所列的图片文件(*.bmp,*.gif和*.jpg),则相应的图片显示在图片框Picture1中,文件的路径显示在文本框中。程序运行结果如下图所示。 程序如下,请补充完整。

  • 第3题:

    窗体中有图片框(Picture1)和计时器(Timer1)两个控件,运行程序时,将图片加载到图片框中,然后图片框以每2秒钟一次的速度向窗体的右下角移动,每次向左、向右移动100单位。请在[ ]填空:
    load;Interval;move

  • 第4题:

    设窗体上有图片框Picture1和计时器Timer1两个控件,运行程序时,将图片加载到图片框中,然后图片框以每5秒钟一次的速度向窗体的右下方移动,每次向右、向下移动100。请补充程序中的空白处。
    ①Timer1
    ②Static x,y As Integer
    ③x,y

  • 第5题:

    假定picture1和text1分别为图片框和文本框的名称,下列不正确的语句是()

    Aprint 25

    Bpicture1.print 25

    Ctext1.print 25

    Ddebug.print 25


    C