在VB 中出现424

来源:百度知道 编辑:UC知道 时间:2024/06/21 18:44:55
Private Sub Command1_Click()
Form1.BackColor = vbWhite

End Sub

Private Sub Command2_Click()
Labell.ForeColor = vbRed
End Sub

Private Sub Command3_Click()
End

End Sub

Private Sub Label1_Click()
Labell.Caption = "VB程序"

End Sub

我觉得你可能把这个写错了吧

你仔细看看

Labell和Label1 你的label是不是叫Label(数字1)而不是Label(英文l)

Private Sub Command1_Click()
Form1.BackColor = vbWhite

End Sub

Private Sub Command2_Click()

Label1.ForeColor = vbRed
End Sub

Private Sub Command3_Click()
End

End Sub

Private Sub Label1_Click()
Label1.Caption = "VB程序"

End Sub
这样运行没错

不要像我粗心大意