Ver Mensaje Individual
  #2 (permalink)  
Antiguo 26/08/2005, 09:35
Avatar de Andres95
Andres95
Colaborador
 
Fecha de Ingreso: diciembre-2004
Mensajes: 1.802
Antigüedad: 19 años, 5 meses
Puntos: 38
estas creando un label no un radiobutton

Tal vez ya lo solucionaste... pero te comento que estabas creando un label en lugar de un radiobutton... te anexo el codigo de ejemplo...

Saludos!


Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim MiRadio As New Control
Dim CuentaRadio As Integer
Dim Nombre As String

Nombre = "Cadena ejemplo"


CuentaRadio = 2
MiRadio = New RadioButton 'Creando un radio button
Dim MyTipo As System.Type = MiRadio.GetType
MiRadio.Name = MyTipo.Name & Convert.ToString(CuentaRadio)
MiRadio.Left = 100
MiRadio.Top = 125 + (CuentaRadio * 30)
MiRadio.Text = Nombre
MiRadio.Visible = True
MiRadio.Text = "Otra Cadena"

Me.Controls.Add(MiRadio)


End Sub