-
Dec 30th, 2012, 04:57 PM
#1
Thread Starter
New Member
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.
-
Dec 30th, 2012, 05:42 PM
#2
Hyperactive Member
Re: Sending text to a RTB
Hi, are you wanting to send a predefined set of text?
-
Dec 30th, 2012, 05:50 PM
#3
Thread Starter
New Member
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.
-
Dec 30th, 2012, 05:54 PM
#4
Hyperactive Member
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"
-
Dec 30th, 2012, 06:20 PM
#5
Thread Starter
New Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|