Hi
I wanna when checkbox checked write 0 to 5 in my list box
please help me
thanks

If CheckBox1.CheckState = CheckState.Checked Then
               If CheckBox1.CheckState = CheckState.Checked Then
                For i As Int16 = 1 To 5
                    ListBox1.Items.Add(i).ToString()
                Next
            Else
                ListBox1.Items.Clear()
            End If            End If

Write this code in CheckBox1_CheckStateChanged Event

Pgmer
thanks so much

Please mark thread as solved if it is solved.

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.