i have a form where it has multiple checkboxes, and its up to users to select or unselect the checkbox.
then user have to choices to go back to the main page; ok and cancel button

if clicks on OK, the program works fine
but if clicks on CANCEL,, the program still works as it is.. meaning the checkboxes will still update (if user check, then it will check)

Private Sub btnOK_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnOK.Click
        'End If
        Me.DialogResult = DialogResult.OK
    End Sub

    Private Sub btnCancel_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCancel.Click
        Me.DialogResult = DialogResult.Cancel
    End Sub

above are the codes for OK and CANCEL..
please assist me so that it will not save the checkbox select/unselect when click CANCEL?

thanks ^^

8 Years
Discussion Span
Last Post by isumasama

sorry, but i had solved this... mebbe the moderator could close this thread..

^^; i cant find how to delete this thread that ive created

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.