Ver Mensaje Individual
  #6 (permalink)  
Antiguo 05/10/2011, 11:00
Avatar de lokoman
lokoman
 
Fecha de Ingreso: septiembre-2009
Mensajes: 502
Antigüedad: 14 años, 7 meses
Puntos: 47
Respuesta: Crear ComboBox y TextBox desde VB6.0

Con este codigo le puedes asignar los eventos:

Código vb:
Ver original
  1. Option Explicit
  2. Dim WithEvents txtTexto As VB.TextBox
  3.  
  4. Private Sub cmd_Click()
  5.     Set txtTexto = Controls.Add("VB.TextBox", "Text1")
  6.     txtTexto.Visible = True
  7. End Sub
  8.  
  9. Private Sub txtTexto_Click()
  10.     MsgBox "Tengo el foco!!"
  11. End Sub