hello

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 ^^

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

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.