View Single Post
Old Apr 19th, 2007, 11:14 AM   #3
randum77
Programmer
 
randum77's Avatar
 
Join Date: Jun 2006
Location: Fayettehell, NC
Posts: 56
Rep Power: 3 randum77 is on a distinguished road
I found that the following code will make a radio button.

Dim rbYes As New RadioButton()
            rbYes = New RadioButton()
            rbYes.Left = 8
            rbYes.Top = 300
            Me.Controls.Add(rbYes)
            rbYes.Text = "YES"

The button will say YES next to it. Now, I have to figure out how to make it completely dynamic. I'm assuming I would use variable in all location possible, and on the Top and Left properties, i would increment them as needed. The only part that I wouldn't know right off is how to make the property name dynamic. The rbYes is what I mean. Would i declare it as rbYes(i) or something like that? I appreciate the help.
__________________
_Marshall_

"America has bred a society that is innocent and incapable of accepting responsibility, but yet, is able to place blame on others without guilt."
randum77 is offline   Reply With Quote