单选题 VB
题号 #142394

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

答案解析

暂无解析

你可能感兴趣的试题

A.Private Sub Text1__KeyPress(KeyAscii AS Integer)  
       If  KeyAscii=13 Then        ‘回车符的ACSII码是13  
    a=Val(Text1)  
    If a>=0 or a<=100 Then  
      Text2.SetFocus  
  Else  
        Text1. SetFocus   ;  MsgBox(“分数错”)  
  End If  
  End If  
  End  Sub  
B.Private Sub Text1__KeyPress(KeyAscii AS Integer)  
       If  KeyAscii=13 Then        ‘回车符的ACSII码是13  
    a=Val(Text1)  
    If a>=0 And a<=100 Then  
      Text1.SetFocus  
  Else  
        Text2. SetFocus   ;  MsgBox(“分数错”)  
  End If  
  End If  
  End  Sub  
C.Private Sub Text1__KeyPress(KeyAscii AS Integer)  
       If  KeyAscii=13 Then        ‘回车符的ACSII码是13  
    a=Val(Text1)  
    If a<0 And a>100 Then  
      Text2.SetFocus  
  Else  
        Text1. SetFocus   ;  MsgBox(“分数错”)  
  End If  
  End If  
  End  Sub  
D.Private Sub Text1__KeyPress(KeyAscii AS Integer)  
       If  KeyAscii=13 Then        ‘回车符的ACSII码是13  
    a=Val(Text1)  
    If a>=0 And a<=100 Then  
      Text2.SetFocus  
  Else  
        Text1. SetFocus   ;  MsgBox(“分数错”)  
  End If  
  End If  
  End  Sub
找试题 · 找答案 · 找资料 在线模考