Hi
I wanna when checkbox checked write 0 to 5 in my list box
please help me
thanks
123mehran
0
Newbie Poster
Recommended Answers
Jump to PostIf 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
All 3 Replies
Pgmer
50
Master Poster
Featured Poster
123mehran
0
Newbie Poster
Pgmer
50
Master Poster
Featured Poster
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.