Originally posted by Pirate
VB Code:
  1. Dim radiolist() As [B]New<b>You just need "<b>New</b>" Keyword when creating the array .
  2. </b> RadioButton
  3.         Dim i As Int16
  4.         Dim j As Int16 = 10
  5.         Dim temp As String = "Radio"
  6.  
  7.         For i = 1 To 10
  8.             radiolist(i).Name = temp + Str(i)
  9.             radiolist(i).Location = New Point(1, j)
  10.             radiolist(i).Text = Str(i)
  11.             j = j + 10
  12.         Next
[/B]
Hi,

Are you sure you can do

Dim radiolist() As New RadioButton?

I did not know you could create a control array in VB.NET just like that.