|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||||
|
|||||
|
Re: Need Visual Basic Help
Two ways you can do it...
1. If they are the only checkboxes on the form(or panel, etc): Code:
For each ctl as Control in Me.Controls
If TypeOf ctl is Checkbox then CType(ctl, Checkbox).Checked = False
Next ctl
Code:
CheckBox1.Checked=False CheckBox2.Checked=False ... |
|
#2
|
||||
|
||||
|
Re: Need Visual Basic Help
You want to try something like this. Place it in the ButtonUnchecked clicked sub.
For i As Integer = 0 To checklistbox1.Items.Count - 1 checklistbox1.SetItemChecked(i, False) Next i |
|
#3
|
||||
|
||||
|
Re: Need Visual Basic Help
Ok I finally found it. After a day on Google, here's the code:
Dim i As Integer For i = 0 To Me.CheckedListBox1.CheckedIndices.Count - 1 Me.CheckedListBox1.SetItemChecked(Me.CheckedListBo x1.CheckedIndices(0), False) Next i |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Visual Basic | basicxman | IT / Communications | 11 | 11-13-2007 11:43 PM |
| Visual basic Help plz | Jevin H | IT / Communications | 4 | 03-30-2007 06:57 PM |
| Visual Basic help needed. | Cody Carey | Programming | 1 | 02-25-2007 03:06 PM |
| Visual Basic | dddriveman | Programming | 12 | 03-20-2004 01:03 PM |
| Help programming in Visual Basic | xxlshortys | Programming | 0 | 04-06-2003 08:54 AM |