单选题
VB
2013-08-15
要求当鼠标在图片框P1中移动时,立即在图片框中显示鼠标的位置坐标。下面能正确实现上述功能的事件过程是( )。
A.Private Sub P1 MouseMove(Button As Integer,Shift As Integer,X As Single,Y
As Single)
Print X Y
End Sub
As Single)
Print X Y
End Sub
B.Private Sub P1 MouseDown(Button As Integer,Shift As Integer,X As Single,Y
As Single)
Picture.Print X,Y
End Sub
As Single)
Picture.Print X,Y
End Sub
C.Private Sub P1 MouseMove(Button As Integer,Shift As Integer,X As Single,Y
As Single)
P1.Print X,Y
End Sub
As Single)
P1.Print X,Y
End Sub
D.Private Sub Form MouseMove(Button As Integer,Shift As Integer,X As Single,Y
As Single)
P1.Print X,Y
End Sub
As Single)
P1.Print X,Y
End Sub
参考答案
C
答案解析
C。【解析】本题是对Pl的鼠标移动的记录,并且在屏幕上输出坐标位置,所以为Pl.Print X,Y。
你可能感兴趣的试题
A.把For k=3 To n改为For k=1 To n
B.把n=20000改为n=20000000
C.把For k=3 To n改为For k=3 To n Step 2
D.把PI=1改为P1=0
A.13+23+33+…+103的值
B.10!+…+3!+2!+1!的值
C.(1+2+3+…+10)3的值
D.10个103的和
A.Print arr.Code(2),art.Caption(2)
B.Print art.Code,arr.Caption
C.Print arr(2).Code,arr(2).Caption
D.Print Code(2),Caption(2)