vb中窗体的load事件,我在里面设置了窗体加载时在窗体上输出 文字,可是没有实现。
PrivateSubForm_Click()Dima1AsInteger,a2AsInteger,tAsIntegera1=5:a2=10Form1.Print"交换";...
Private Sub Form_Click()
Dim a1 As Integer, a2 As Integer, t As Integer
a1 = 5: a2 = 10
Form1.Print "交换"; a1; a2
t = a1: a1 = a2: a2 = t
Form1.Print "得:"; a1; a2
End Sub
Private Sub Form_Load()
Form1.AutoRedraw = ture
Form1.Print "交换两个数"
Form1.Print "单击窗体开始"
End Sub
运行时
为什么不显示这些内容:
交换两个数
单击窗体开始 展开
Dim a1 As Integer, a2 As Integer, t As Integer
a1 = 5: a2 = 10
Form1.Print "交换"; a1; a2
t = a1: a1 = a2: a2 = t
Form1.Print "得:"; a1; a2
End Sub
Private Sub Form_Load()
Form1.AutoRedraw = ture
Form1.Print "交换两个数"
Form1.Print "单击窗体开始"
End Sub
运行时
为什么不显示这些内容:
交换两个数
单击窗体开始 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询