Ver Mensaje Individual
  #2 (permalink)  
Antiguo 03/08/2008, 04:08
Avellaneda
Colaborador
 
Fecha de Ingreso: enero-2008
Ubicación: Unas veces aquí, otras veces allí
Mensajes: 1.482
Antigüedad: 16 años, 3 meses
Puntos: 37
Respuesta: Eliminar textbox en tiempo de ejecución

Cita:
Iniciado por Marea2 Ver Mensaje
Hola a todos tengo Visual basic 6 y me gustaria eliminar un textbox en tiempo de ejecución:

Para crearlo lo hago así:

Set txt1 = Form1.Controls.Add("VB.textbox", Text1.Text)
With txt1
.Visible = True
.Width = 10000
.Height = 2000
.Top = 8500
.Text = ""
.Enabled = False

End With

Pero yo quiero borrarlo

Muchas gracias
Hola,

prueba así:

txt1.Visible = False
Set txt1 = Nothing