#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2003
    Posts
    2
    Rep Power
    0

    Urgent!need Help!!


    I am working on a HTML Text editor and I have a very important question, here it is. I have a RichTextBox and some buttons so far, when the user clicks on one of these buttons i want certain text to appear at the cursors position inside the RichTextBox(text should be inserted right beside the blinking cursor). I need to know an answer fast so any help you can give would be creatly appreciated.
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2003
    Location
    Brisbane, Australia
    Posts
    50
    Rep Power
    11
    I have never played with rich text box and I'm not quite sure, but you can try:
    Code:
    rtb.Text = rtb.Text.Insert(rtb.SelectionStart, ins_str);
    where rtb is the RichTextBox and ins_str is the string that you want to insert to.
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2000
    Location
    Redmond, WA
    Posts
    218
    Rep Power
    15
    that sounds like something you'd want done on the client side, not the server side. javascript would be an ideal solution here.

IMN logo majestic logo threadwatch logo seochat tools logo