Results 1 to 5 of 5

Thread: Inserting Text Into RTB

  1. #1

    Thread Starter
    Addicted Member Fat_N_Furry's Avatar
    Join Date
    Oct 2002
    Posts
    171

    Question Inserting Text Into RTB

    Hello, again. I know someone out there must know how to insert text into wherever the user has that little blinking thing. Lemme know how - I need this for an app I'm building to help you all. You'll find out how it helps you once I'm done with it.


    Furry
    Eat long and prosper!
    If someone helps you, find someone you can help.
    If you still have time, click on the darn banner up there and help the forum!

  2. #2
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    You can use the AppendText to add on text or you can use rtbTest.SelectedText="something"

  3. #3
    Fanatic Member
    Join Date
    Sep 2002
    Posts
    518
    What do you mean, like a Paste function?

  4. #4

    Thread Starter
    Addicted Member Fat_N_Furry's Avatar
    Join Date
    Oct 2002
    Posts
    171
    Originally posted by Edneeis
    You can use the AppendText to add on text or you can use rtbTest.SelectedText="something"
    AppendText is KIND of what I'm looking for. The only problem is that it adds text to the END of a string, not somewhere in the middle, I think. I need to put text somewhere in the middle, like, say, where the little blinking thing is. Would the .SelectedText = "something" do that?

    Originally posted by Slow_Learner
    What do you mean, like a Paste function?
    Yeah. A paste function would work nicely, except it would delete whatever the user has in his/her clipboard. If you could do something like in Microsoft Word, however, (have more than one clipboard) that'd fix the problem.


    Furry
    Eat long and prosper!
    If someone helps you, find someone you can help.
    If you still have time, click on the darn banner up there and help the forum!

  5. #5

    Thread Starter
    Addicted Member Fat_N_Furry's Avatar
    Join Date
    Oct 2002
    Posts
    171
    Ahh! Yes! RichTextBox1.SelectedText = "something" worked nicely. Thankyou both for your help.


    Furry
    Eat long and prosper!
    If someone helps you, find someone you can help.
    If you still have time, click on the darn banner up there and help the forum!

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