Results 1 to 3 of 3

Thread: Display message in differen line in textbox?

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Feb 2000
    Posts
    20

    Post

    I have a text box (multiline = true, scrollbars = vertikel) to display the message or infro about what have changes in one of my from. Did anyone one know how to display the message in the text box without overwriting the old meesage?
    That means i want every changes display a new line.

  2. #2
    Addicted Member
    Join Date
    Jan 2000
    Location
    Oshkosh, WI
    Posts
    163

    Post

    Simply append a carriage control/line feed an your new message to the existing textbox. How you append it determines whether you want the new message to appear at the top or the bottom.

    To appear at the top

    Code:
    txtBox.text = sMessage & vbCRLF & txtBox.text
    To appear at the bottom:

    Code:
    txtBox.text = txtBox.text & vbcrlf & sMessage

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Feb 2000
    Posts
    20

    Post

    ThankX Glenn, the code work perfectly. :þ

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