单选题
VB
题号 #2537601
某人创建了1个工程,其中的窗体名称为Form1;之后又添加了1个名为Form2的窗体,并希望程序执行时先显示Form2窗体,那么,他需要做的工作是( )。
参考答案
A
答案解析
在Visual Basic 中若要启动某个指定的窗体可以在工程属性对话框中的把"启动对象"设置为该指定的对象。
你可能感兴趣的试题
A.Private Sub Co mmand1_Click()
Open "out .txt"For Input As #1
Print #1,Text1.Text
Close #1
End Sub
Open "out .txt"For Input As #1
Print #1,Text1.Text
Close #1
End Sub
B.Private Sub Co mmand1_Click()
Open "out .txt"For Output As #1
Print #1,Text1.Text
Close #1
End Sub
Open "out .txt"For Output As #1
Print #1,Text1.Text
Close #1
End Sub
C.Private Sub Co mmand1_Click()
Open "out .txt"For Append As #1
Print #1,Text1.Text
Close #1
End Sub
Open "out .txt"For Append As #1
Print #1,Text1.Text
Close #1
End Sub
D.Private Sub Co mmand1_Click()
Open "out .txt"For Rando m As #1
Print #1,Text1.Text
Close #1
End Sub
Open "out .txt"For Rando m As #1
Print #1,Text1.Text
Close #1
End Sub
A.While…Wend 循环语句错误,应改为For k =1To99…Next k
B.循环条件错误,应改为While k <99
C.循环前的赋值语句k =l 错误,应改为k =0
D.循环中两条赋值语句的顺序错误,应改为s =s +k :k=k +2
A.只有输入的n 是偶数时才会出现死循环,否则不会
B.只有输入的n 是奇数时才会出现死循环,否则不会
C.只有输入的n 是大于1000的整数时才会出现死循环,否则不会
D.输入任何整数都会出现死循环