Thanks Viv
but i am adding no of buttons in my form through user control custom property like this
Private nbtn, i As Integer
Private oradio As New System.Windows.Forms.RadioButton
Dim cntrx As Integer = Me.Location.X
Dim octr As Control
Property Buottos() As Integer
Get
Return nbtn
End Get
Set(ByVal value As Integer)
nbtn = value
Me.Controls.Clear()
For i = 1 To nbtn
Dim btn1 As New System.Windows.Forms.RadioButton
Me.Controls.Add(btn1)
btn1.Text = "Radiobtn" + i.ToString.Trim
btn1.AutoSize = True
btn1.Location = New System.Drawing.Point(i * 80, 3)
'oradio.Name = "rb" + i.ToString.Trim
Next
End Set
End Property
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only