473,383 Members | 2,005 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

RichTextBox: problems inserting (c), TM and (R) symbols

I am trying to insert special characters into text of a
rich text edit box. The user should be able to press a
toolbarbutton to insert a specific character.
I have looked up RTF codes for (c) and (R) etc. and tried
the following code:

richTextBox1.SelectedRtf = @"{\rtf1\ansi \'99}";

This properly inserts a "TM" symbol in the text.

However, to my surprise, the box seems "screwed" after
this. I can edit the text that was there before the
insert, but not delete or overwrite the TM symbol. The
same applies to (c) and other symbols.

I also tried

richTextBox1.Rtf = @"{\rtf1 Some Symbol\'99}";

which results in a RTF box that cannot be edited any
more, but

richTextBox1.Rtf = @"{\rtf1 Some Text}";
works fine.

What's wrong here??
Jul 19 '05 #1
0 3571

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Juan | last post by:
I`m inserting strings in a rich text control using the AppendText method, I would like to change certain parts of the string so, for example, a certain word appears bold and red when inserted. Is...
1
by: gabe | last post by:
I am looking for a way to mimic some of the functionality of a web page without writing html (or I am looking to someone to point out something really obvious that I am over looking) Currently I...
2
by: Clark Stevens | last post by:
Hi. This should be so easy, but I don't get it. Let say I have RichTextbox1 and I want to insert some text at the current insertion point, or at the beginning of selected text (if there is any). ...
8
by: Dennis | last post by:
How can I tell if the Insert Mode is on or off? -- Dennis in Houston
0
by: yuraukar | last post by:
I am trying to insert special characters into text of a rich text edit box. The user should be able to press a toolbarbutton to insert a specific character. I have looked up RTF codes for (c) and...
0
by: Boni | last post by:
Dear all, my Richtextbox.text contains tabs and may be other special symbols (\r\n). I need to set a cursor on a position after a charachter number X. But Richtextbox.selectionstart=X don't do it,...
0
by: ajithmanmadhan | last post by:
hi pls help me out in inserting text into a richtextbox. the situation is like this:: i want to insert a string say "hello" at a particular location in the rich textbox. The particular...
1
by: txomin | last post by:
Hi all, Following the instructions of this link http://support.microsoft.com/kb/812425, i've been able to print the content of a RichTextBox control . Apart from that , I want to have the chance...
1
by: IMAFriend | last post by:
So, if I have 2 richtextboxes, call them rtbSource and rtbTarget. I can say rtbTarget.rtf = rtbSource.rtf and it works. But if rtbTarget already has something in it, how can I 'insert' the...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.