Hi guys! take a look at this:

  Sub Timer1Tick(sender As Object, e As EventArgs)

        initialCountdownNo = initialCountdownNo + 1

    Select Case initialCountdownNo

        Case 3
            cars(0).visible = True
            cars(1).visible = True
            cars(2).visible = True

            initialCountdown.Stop()

    End Select
    End Sub

since thos objects are grouped in an array isnt there a way to set the property "visible" to true of all of them in a single line of code?

Not in one line, but you could do

For i As Integer = 0 To 2
    cars(i).Visible = True
Next

or if you want to make it more general (assuming you are looping over all cars)

For Each car In cars
    car.Visible = True
Next
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.