VB 语言程序设计课后编程及上机调试参考答案ex0101Private Sub Label1_Click() Caption = "练习" Command1
Caption = "确定" Label1
FontBold = True Label1
AutoSize = True Label1
Caption = "Visual Basic 程序设计教程"End Subex0102Private Sub Command1_Click() Txt
Text = "我有电脑"End SubPrivate Sub Command2_Click() Txt
Text = "我没有电脑"End SubPrivate Sub Command3_Click() Txt
Text = "" '一对双撇号,中间不留空End Subex0104Private Sub Command1_Click() Dim x As Single x = Val(Text1
Text) Text2
Text = 15 * xEnd Subex0202Private Sub Form_Click() Dim r As Single, s As Single r = 4
6 s = 3
14159 * r ^ 2 Text1
Text = "圆的面积为" & sEnd Subex0204Private Sub Command1_Click() '"最大化"按钮 Form1
WindowState = 2 '最大化End SubPrivate Sub Command2_Click() '"还原"按钮 Form1
WindowState = 0 '还原End Sub1Private Sub Command3_Click() '"最小化"按钮 Form1