题目内容

在窗体上画两个滚动条,名称分别为Hscroll1、Hscroll2;六个标签,名称分别为Label1、Label2、Label3、Label4、Label5、Label6,其中标签Label4~Label6分别显示“A”、“B”、“A*B”等文字信息,标签Label1、Label2分别显示其右侧的滚动条的数值,Label3显示A*B的计算结果。当移动滚动框时,在相应的标签中显示滚动条的值。当单击命令按钮“计算”时,对标签Label1、Label2中显示的两个值求积,并将结果显示在Label3中。以下不能实现上述功能的事件过程是______。

A. Private Sub Command1_Click() Label3. Caption=Str(Val(Label1.Caption)*Val(Label2.Caption)) End Sub
B. Private Sub Command1_Click() Label3.Caption=HScroll1.Value*HScroll2.Value End Sub
C. Private Sub Command1_Click() Label3.Caption=HScroll1*HScroll2 End Sub
D. Private Sub Command1_Click() Label3.Caption=HScroll1.Text*HScroll2.Text End Sub

查看答案
更多问题

以下有关数组定义的语句序列中,错误的是______。

A. Static arr1(3) Arr1(1)=100 arr1(2)="Hello" arr1(3)=123.45
B. Dim arr2()As Integer Dim size As Integer Private Sub Command2_Click() size=InputBox("输入:") ReDimarr2(size) ...... End Sub
C. Option Base 1 Private Sub Command3_Click() Dim arr3(3)As Integer ...... End Sub
Dim n As Integer Private Sub Command4_Click() Dim arr4(n)As Integer ...... End Sub

Which of the following statements is true.

A. We won't find a cure for cancer until the beginning of the next' century.
B. We'll never be in a position to prevent all cancers.
C. If we are to eliminate cancer, we' 11 have to protect our environment.
D. Very few medicines can be used against cosmic rays.

Peter Senior believes that ______.

A. art should be encouraged in British hospitals
B. are is losing its audience in modern society
C. are galleries should be changed into hospitals
D. patients should be encouraged to learn painting

This passage is probably taken from ______.

A. a text book
B. an introduction to a book
C. a scientific report
D. an interview with two leading scientists in medicine

答案查题题库