Hi everyone..

How to make the checkbox stays checked when double click???

When i click the checkbox it will check, and when i double click it, it will still be check...

how should i do that guys???...

Cheers:-)...USC CAS CHEERDANCE TEAM

Public Class frmTest

    Private Sub frmTest_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

        CheckBox1.CheckState = CheckState.Checked

    End Sub

    Private Sub CheckBox1_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CheckBox1.CheckedChanged

        If CheckBox1.Checked Then

            CheckBox2.CheckState = CheckState.Unchecked
            CheckBox3.CheckState = CheckState.Unchecked

        End If

    End Sub

    Private Sub CheckBox2_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CheckBox2.CheckedChanged

        If CheckBox2.Checked Then

            CheckBox1.CheckState = CheckState.Unchecked
            CheckBox3.CheckState = CheckState.Unchecked

        End If

    End Sub

    Private Sub CheckBox3_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CheckBox3.CheckedChanged

        If CheckBox3.Checked Then

            CheckBox1.CheckState = CheckState.Unchecked
            CheckBox2.CheckState = CheckState.Unchecked

        End If

    End Sub

    Private Sub CheckBox1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles CheckBox1.Click

        CheckBox1.Checked = True

    End Sub

    Private Sub CheckBox2_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles CheckBox2.Click

        CheckBox2.Checked = True

    End Sub

    Private Sub CheckBox3_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles CheckBox3.Click

        CheckBox3.Checked = True

    End Sub
End Class

Thanks, i do know the difference already:-)

can you give me more links about checkboxes??..thanks my friend

Try google.
One more link: Click Here

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.