Home All Groups Group Topic Archive Search About
Author
20 Nov 2007 5:53 PM
cmdolcet69
I need to loop through a index change event, however whenever i loop
through the first combo box always report back correctly its when i
move to the next combobox, that instead of changing the second combo
box it will change the background of the first combo box.

What im i doing wrong?


For intloop = 0 To cboArraylist.Count - 1
            If (CType(cboArraylist(intloop), ComboBox).Text) = "Go"
Then
                CType(cboArraylist(intloop), Object).BackColor =
Color.LawnGreen
            ElseIf (CType(cboArraylist(intloop), ComboBox).Text) = "No
Go" Then
                CType(cboArraylist(intloop), Object).BackColor =
Color.Tomato
            End If

        Next

Author
20 Nov 2007 6:03 PM
Bob Butler
"cmdolcet69" <colin_dolce***@hotmail.com> wrote in message
news:0b545853-1edf-4f04-809c-7bae97c5cb50@f13g2000hsa.googlegroups.com...
> What im i doing wrong?

posting in the wrong newsgroup; not your fault though as MS confused things
by re-using the VB name on a new language


--
You need to ask in a newsgroup with "dotnet" in the name.  This group is for
VB 6.0 and earlier and does not include VB.Net or VB 200x.

AddThis Social Bookmark Button