Ver Mensaje Individual
  #2 (permalink)  
Antiguo 16/11/2009, 09:17
Avatar de txG3
txG3
 
Fecha de Ingreso: septiembre-2009
Ubicación: Aragón - Torrero
Mensajes: 10
Antigüedad: 14 años, 8 meses
Puntos: 0
Respuesta: Insertar texto de un textbox a otro textbox

Utiliza variables string concatenadas para el textbox2 y programa el evento keypress del textbox1.
ej

Private Sub textbox1_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles textbox1.KeyPress
dim a as string="El señor xxxxx"
dim b as string=", se digne en xxxxx"
dim texto as string=""

if e.keychar="" then
texto=e.keychar
else
texto=texto & e.keychar
end if
textbox2.text= a & texto & b
end sub


Mira a ver si esto te funciona.

Última edición por txG3; 16/11/2009 a las 11:11