none
change label text if checkbox is unchecked

    Question

  • Hi

    I'm trying to change the the text of a label automatically without using a click event
     after unchecking a checkbox
    Thanks

    Tony
    Friday, September 19, 2008 3:26 AM

Answers

All replies

  • Use the CheckedChanged event.
    • Marked as answer by TonyFlora63 Friday, September 19, 2008 2:00 PM
    Friday, September 19, 2008 4:53 AM
  • Thanks John!

    It worked!

    Here's my Code:

    Private Sub Ck_Box_RGSNT_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Ck_Box_RGSNT.CheckedChanged

    If Ck_Box_RGSNT.Checked = False Then

    Lab_sz_RGSNT.Text = "0"

    End If

    End Sub

    Friday, September 19, 2008 2:04 PM