|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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
|
|||
|
|||
|
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. |
|
#3
|
|||
|
|||
|
that sounds like something you'd want done on the client side, not the server side. javascript would be an ideal solution here.
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > .Net Development > Urgent!need Help!! |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|