Results 1 to 5 of 5

Thread: Sending text to a RTB

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2012
    Posts
    6

    Exclamation Sending text to a RTB

    I just started programming in VB again so I forgot a lot . Anyways can anyone tell me how to make a button send text to a RichTextBox? Thanks ahead of time to anyone who replies.

  2. #2
    Hyperactive Member
    Join Date
    May 2009
    Posts
    274

    Re: Sending text to a RTB

    Hi, are you wanting to send a predefined set of text?

  3. #3

    Thread Starter
    New Member
    Join Date
    Sep 2012
    Posts
    6

    Re: Sending text to a RTB

    Ya, I want to send a numerical value such as; 7 to a richtextbox.

    Also forgot to add I'm using VB 2010, also the version is fully up to date.

  4. #4
    Hyperactive Member
    Join Date
    May 2009
    Posts
    274

    Re: Sending text to a RTB

    Easy.....

    To replace all the text in the RTB you would use

    Code:
    Richtextbox1.Text = "7"
    If you wanted to preserve the text in there and add your own

    Code:
    Richtextbox1.Text = Richtextbox1.Text & "7"

  5. #5

    Thread Starter
    New Member
    Join Date
    Sep 2012
    Posts
    6

    Re: Sending text to a RTB

    I feel pretty dumb now xD... thanks for the help.

Tags for this Thread

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