未找到方法或数据成员Private Sub Command1_Click()
来源:百度知道 编辑:UC知道 时间:2024/06/17 05:33:13
Private Sub Command1_Click()
Command1.Visible = False
Text1.Visible = False
Label1.Visible = False
Label2.Visible = True
Label2.autosiza = True
Label2.FontName = "黑体"
Label2.ForeColor = vbRed
Label2.Caption = Text1.Text & "同学,祝你进步发财!"
Command2.Visible = True
Command3.Visible = True
End Sub
Private Sub Command2_Click()
End
End Sub
Private Sub Command3_Click()
Command2.Visible = fales
Command3.Visible = False
Label1.Visible = ture
Label2.Visible = False
Command1.Visible = True
Text1.Text = ""
Text1.Visible = True
End Sub
我抄例题的啊,原封不动,运行就是老提示错误 未找到方法或数据成员
Command1.Visible = False
Text1.Visible = False
Label1.Visible = False
Label2.Visible = True
Label2.autosiza = True
Label2.FontName = "黑体"
Label2.ForeColor = vbRed
Label2.Caption = Text1.Text & "同学,祝你进步发财!"
Command2.Visible = True
Command3.Visible = True
End Sub
Private Sub Command2_Click()
End
End Sub
Private Sub Command3_Click()
Command2.Visible = fales
Command3.Visible = False
Label1.Visible = ture
Label2.Visible = False
Command1.Visible = True
Text1.Text = ""
Text1.Visible = True
End Sub
我抄例题的啊,原封不动,运行就是老提示错误 未找到方法或数据成员
小数点.之前的东西都是必须在窗体上创建的控件名称,逐个检查一下,如果有遗漏,会出现你说的错误提示
另外,
Label2.autosiza = True中是Label2.autosize
Command2.Visible = fales中是command2.visible=false
控件的方法可能写错了。就是点后面的方法看清楚
添加控件没?