|
-
Jun 25th, 2004, 05:53 PM
#1
PowerPoster
Originally posted by Pirate
VB Code:
Dim radiolist() As [B]New<b>You just need "<b>New</b>" Keyword when creating the array .
</b> RadioButton
Dim i As Int16
Dim j As Int16 = 10
Dim temp As String = "Radio"
For i = 1 To 10
radiolist(i).Name = temp + Str(i)
radiolist(i).Location = New Point(1, j)
radiolist(i).Text = Str(i)
j = j + 10
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.
Taxes
The more I learn about VB.NET the more I like dBaseIII Plus
The foregoing, whilst believed to be correct, is given without guarantee as to it's accuracy and entirely without recourse. You are required to decide for yourself whether or not it is suitable for your purposes and no liability for loss of any nature can be entertained.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|