Hey Guys,
I'm sort of new to coding in .net and I want to write a Sudoku assister for practice.

I would like to display values that are still available for each box that does not have an entered number. One way to do this would be to have 81 labels and update them all when a new number is entered.
I'm trying to figure out a way to avoid typing
label1.text = string1 through label81.text=string 81
This is super easy in vb6 you just have to use a control array, but it seems those are dead in .net and that there is no simple way of bringing them back.

Thanks,
-Belac

Hi,
You can hold the all reference in an array. Dim Labels(0 To 80) As Label Then use a loop to create labels and add to array and form

Thanks,
I'll try that when I get home from work.
-belac

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.