问题 单项选择题

工程中有2个窗体,名称分别为Form1、Form2,Form1为启动窗体,该窗体上有命令按钮Command1。 要求程序运行后单击该命令按钮时显示Form2,则按钮的Click事件过程应该是【 】

A.Private Sub Command1_Click() Form2.Show End Sub

B.Private Sub Commaad1 Click() Form2.Visible End Sub

C.Private Sub Command1_Click()Load Form2 End Sub

D.Private Sub Command1 Click() Form2 LoadEnd Sub

答案

参考答案:A

解析:本题考查的是命令按钮的Click事.件。根据题意,要想在单击命令按钮时显示一个窗体form2,则按钮的Click事件过程的代码应该是"Form2.show",即让Form2装入内存并显示出来,所以本题的正确答案是选项A);选项B)不正确,因为此时Form2并没有加载,如果用该语句并不能显示Form2;而选项C)只是加载Form2,并没有显示,选项D)不正确。

单项选择题
单项选择题

People have good reason to care about the welfare of animals. Ever since the Enlightenment, their treatment has been seen as a measure of mankind’s humanity. It is no coincidence that William Wilberforce and Sir Thomas Foxwell Buxton, two leaders of the movement to abolish the slave trade, helped found the Royal Society for the Prevention of Cruelty to Animals in the 1820s. An increasing number of people go further: mankind has a duty not to cause pain to animals that have the capacity to suffer. Both views have led people gradually to extend treatment once reserved for mankind to other species.

But when everyday lives are measured against such principles, they are fraught with contradictions. Those who would never dream of caging their cats and dogs guzzle bacon and eggs from ghastly factory farms. The abattoir and the cattle truck are secret places safely hidden from the meat-eater’s gaze and the child’s story book. Plenty of people who denounce the fur-trade (much of which is from farmed animals) quite happily wear leather (also from farmed animals).

Perhaps the inconsistency is understandable. After hundreds of years of thinking about it, people cannot agree on a system of rights for each other, so the ground is bound to get shakier still when animals are included. The trouble is that confusion and contradiction open the way to the extremist. And because scientific research is remote from most people’s lives, it is particularly vulnerable to their campaigns.

In fact, science should be the last target, wherever you draw the boundaries of animal welfare. For one thing, there is rarely an alternative to using animals in research. If there were, scientists would grasp it, because animal research is expensive and encircled by regulations. Animal research is also for a higher purpose than a full belly or an elegant outfit. The world needs new medicines and surgical procedures just as it needs the unknowable fruits of pure research.

And science is, by and large, kind to its animals. The couple of million (mainly rats and mice) that die in Britain’s laboratories are far better looked- after and far more humanely killed than the billion or so (mainly chickens ) on Britain’s farms. Indeed, if Darley Oaks makes up its loss of guinea pigs with turkeys or dairy cows, you can be fairly sure animal welfare in Britain has just taken a step backwards.

In the text, a comparison is made so as to()

A. abolish the slave trade

B. elaborate a higher purpose of animal research

C. warn that mankind has a duty not to cause pain to animals

D. assert that science is, by and large, kind to its animals