问题 问答题

在窗体上画一个列表框,名称为List1,通过属性窗口向列表框中添加3个项目,分别为“Iterm1、“Iterm2”和“Item3”。编写适当的事件过程。使程序运行后,如果双击Form1空白处.则清空列表框中的内容。程序运行时窗体界面如下图左图和下图右图所示。
注意:存盘时必须存放在考生文件夹下,工程文件名为sj1.vbp,窗体文件名为sj1.frm。

答案

参考答案:列表框控件用于显示可供单一或多个选择的列表项,给列表框添加列表项既可以在设计阶段通过其List属性设置加入(注意每输入完一项后按<Ctrl+Enter>组合键换行再输入下一项),也可在程序运行时通过代码“列表框名.Addhem”项目" "加入,清除窗体内容可通过Cls方法来实现。
根据题意,新建“标准EXE”工程,将一个List控件添加到窗体中,其名称为List1,在属性窗口的List属性中添加“Item1”、“Item2”和“Item3”,每输入一个后按<Ctrl+Enter>组合键换行输入下一个元素,当输入完成后,按回车键,则元素添加完成,双击Form1的空白处,进入代码编写窗口,编写如下代码:
Private Sub Form_DblClick()
Dim i As Integer
For i=List1.ListCount-1 To 0 Step-1 ’先删除索引大的项,防止i溢出
List1.Remove Item i ’移除索引指定项
Next i
End Sub
单击

按钮运行程序,并按要求保存。

阅读理解

阅读理解

     Sweetest Day is celebrated on the third Saturday in October as a day to make someone happy. It is

an occasion(时候)which offers all of us an opportunity to remember not only the sick, the aged, and

children who have lost their parents, but also friends, workmates, relatives and neighbors whose

helpfulness and kindness we have enjoyed.

     Over 60 years ago, when a Cleveland man noticed that some people, such as children who lost their

parents and patients who lay in bed, too often felt forgotten and neglected, he developed in his mind the

idea of showing them that they were remembered. He did this by giving them small gifts. With the help of

his friends and neighbors, he gave those people small gifts on a Saturday in October. During the years that followed, other Clevelanders began to take part in the celebration, which came to be called "Sweetest

Day". Over time, the Sweetest Day idea of spreading cheer to the poor, the sick and children who had lost their parents was broadened to include everyone, and became an occasion for remembering others with a kind act or a small gift. Soon the idea spread to other cities all over the USA.

     Sweetest Day is not based on any single group's religious beliefs or on a family relationship. It is a

reminder that a thoughtful word or deed enriches life and gives it meaning.

     Because for many people remembering takes the form of gift giving, Sweetest Day offers us the

opportunity to show others that we care, in a positive way.

1. What can we learn from the passage?

A. Sweetest Day is a day to make others happy.

B. Sweetest Day is just an occasion to care about disabled people.

C. Sweetest Day is an occasion for lovers to express love.

D. Sweetest Day is celebrated on the third Sunday in October.

2. What is Cleveland?

A. An island. B. A country.    

C. A village in England.    

D. A city in America.

3. What do most people usually do to show their care to others according to the passage?

A. They give money.

B. They give gifts.

C. They send regards.    

D. They offer help.

单项选择题