Results 1 to 3 of 3

Thread: Changing text in run time

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2000
    Posts
    3
    how do i change the text of a text box more than once during runtime cumulativly? for example:

    2 random functions generate a sentence to put into one text box. How do I get both to show, one after the other?


  2. #2
    Fanatic Member
    Join Date
    Apr 2000
    Location
    Whats a location?
    Posts
    516
    Do you mean this:

    Code:
    Text1.Text = "Sentence 1"
    'Blah blah blah
    Text1.Text = Text1.Text & " Sentence 2"
    'Text1.Text now equals "Sentence 1 Sentence 2"
    The & character just appends one string to another.

    Courgettes.

  3. #3
    Hyperactive Member theman32x's Avatar
    Join Date
    May 2000
    Location
    New Jersey, USA
    Posts
    305
    or you could make the textbox multiline and do the following:

    text1.text = "whatever"
    text1.text = text1.text & vbcrlf & "man"

    that will give you two lines in the textbox

    *vbcrlf is a command to start in a new line ...

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