View Single Post
  #3 (permalink)  
Old September 16th, 2007, 10:22 AM
peter-h peter-h is offline
Registered User
 
Join Date: Sep 2007
Location: Manchester, , United Kingdom.
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for the reply. That has successfully populated the form with my 256 labels.
I found that trying to alter the backcolor of an indivdual label with

frmDisplay.Controls.Item(lbldisplay.Name("3,5")).B ackColor = Color.Green

produced the error "Index was outside the bounds of the array."

I can successfully alter any label properties by using, for instance ~

frmDisplay.Controls(153).BackColor = Color.Green

where the 153 is the index position of the label. If it's not too much trouble would you tell me what's wrong with the code that produces the error?

Reply With Quote