Ver Mensaje Individual
  #4 (permalink)  
Antiguo 29/12/2008, 02:39
Avatar de JoseTejada
JoseTejada
 
Fecha de Ingreso: diciembre-2007
Ubicación: Peru.Lima.Cercado.MDuarez.Granaderos172
Mensajes: 218
Antigüedad: 16 años, 5 meses
Puntos: 11
Respuesta: buttons y text box

Espero haberte entendido bie... Cheka este codigo



Código HTML:
Public Class Form1
    Public s As String = ""
    Private Sub Boton1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Boton1.Click
        s = TxTcontenido.Text
        s += Boton1.Text
        TxTcontenido.Text = s
    End Sub

    Private Sub Boton2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Boton2.Click
        s = TxTcontenido.Text
        s += Boton2.Text
        TxTcontenido.Text = s
    End Sub

    Private Sub Boton3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Boton3.Click
        s = TxTcontenido.Text
        s += Boton3.Text
        TxTcontenido.Text = s
    End Sub

    Private Sub Boton4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Boton4.Click
        s = TxTcontenido.Text
        s += Boton4.Text
        TxTcontenido.Text = s
    End Sub
End Class
En el form puse 4 botones y cada uno con una letra (H,O,L,A) y al darle click a alguno agrega el texto que tiene al textbox (TxTcontenido)...En caso se necesite mas botones, se agrega un evento a cada uno.
Espero que te sirva...Aioz