Private Sub CheckBox1_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CheckBox1.CheckedChanged If CheckBox1.Checked Then CheckBox1.Text = "已经选中" Else CheckBox1.Text = "没有选中" End If End Sub将CheckBox1 的AutoPostBack属性设为true
解决了,谢谢。
If CheckBox1.Checked Then
CheckBox1.Text = "已经选中"
Else
CheckBox1.Text = "没有选中"
End If
End Sub将CheckBox1 的AutoPostBack属性设为true