Results 1 to 4 of 4

Thread: [RESOLVED] RichTextBox Help

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2007
    Posts
    2

    Resolved [RESOLVED] RichTextBox Help

    Ok..So I used the tool box to create a RichTextBox, and I'm trying to make it so it will output multiple lines when I click the button I'm using. I want it to output something like:

    Level: lvl(the variable)
    Attack: atk
    Defense: def
    Stamina: stm

    etc. in the RichTextBox..how can I do this? Or is there something else I need to use to output something like this?

  2. #2
    Fanatic Member Mxjerrett's Avatar
    Join Date
    Apr 2006
    Location
    Oklahoma
    Posts
    939

    Re: RichTextBox Help

    Make it multiline=true.

    Then use the following code

    Code:
    RichTextBox1.text= "Level: " & lvl & vbnewline & "Attack: " & atk & vbnewline & "Defense: " & def & vbnewline & "Stamina: " & atm

    If a post has been helpful please rate it.
    If your question has been answered, pull down the tread tools and mark it as resolved.

  3. #3

    Thread Starter
    New Member
    Join Date
    Sep 2007
    Posts
    2

    Re: RichTextBox Help

    Thanks. I feel like a nub for having asked this XD But I only started VB about a week and a half ago..

  4. #4
    Fanatic Member Mxjerrett's Avatar
    Join Date
    Apr 2006
    Location
    Oklahoma
    Posts
    939

    Re: RichTextBox Help

    Hey we were all there once. Be sure to pull down the thread tools and mark this resolved if it is answered.

    If a post has been helpful please rate it.
    If your question has been answered, pull down the tread tools and mark it as resolved.

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