未找到方法和数据成员

来源:百度知道 编辑:UC知道 时间:2024/06/22 12:56:35
Private Sub Form_Load()
Text1.Text = " ": Text2.Text = " ": Text3.Text = " "
End Sub
Private Sub Command1_Click()
Dim a As Integer, b As Integer, c As Integer, max As Integer
a = Val(Text1.Text)
b = Val(Text2.Text)
c = Val(Text3.Text)
If a > b Then
max = a
Else
max = b
End If
If c > max Then
max = c
End If
Text4.Text = max
End Sub
Private Sub Command1_Click()
就是这句为黄色背景 我初学的不懂啊
我加你了

答案补充:那就更纳闷了,莫非楼主没有建立按钮Command1而是建立了其他的控件?Hi细谈吧,这里不好说明白了。
====================================
不会吧,出现什么错误也不会出现这种错误哎。烦请楼主把出错语句(未找到方法和数据成员之后,背景为黄色的那一句写出来标明。)