Results 1 to 3 of 3

Thread: textboxes

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jun 2000
    Location
    FL
    Posts
    76

    Post

    If I have 2 text boxes, 1 to type in the text and 1 to show the text then how do I make it when I press enter after typing something in the textbox to type stuff it will enter it in the display textbox on a different line each time, just like any chat program.

  2. #2
    Addicted Member
    Join Date
    Mar 2000
    Location
    Gainesville, FL
    Posts
    131
    Chatroom.text = ChatRoom.Text & vbcrlf & TypeHere.text

  3. #3
    Guest
    For when enter is pressed:

    Code:
    Private Sub Text1_KeyPress(KeyAscii As Integer)
    
        If KeyAscii = vbKeyReturn Then
            Text2.Text = Text2.Text & vbCrLf & Text1.Text
        End If
        
    End Sub

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width