469,946 Members | 2,174 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,946 developers. It's quick & easy.

RichTextBox and Mouse Cursor Issues.

Lou
Dear all,

I have two questions and need to get some hints from u. :0)

1. Editor with the syntax functionality.

In my ongoing editor, when the user types the word, e.g. "ABC", the
word "ABC" will appear in the RichTextBox with the changed color red.
Afterwards, when the furhter action is taking on, e.g. user gives the
input directly in the RichTextBox or types the other word, the color
will be back to default one, black.

I made some basic implementations. E.g. add one richTextBox TextChanged
event, and change it color afterwards. However, all the text in
richTextBox will be changed, not as I wish. E.g. some specific ones
will be changed, whilst the rest will be in the default color.

2. Mouse cursor.

I designed one key with the del functionality. However, everytime I use
the key, the cursor always stay in the front of the text, not in the
end of the text. How shall I accomplisht the task that the mouse cursor
will be in the back of the text when I wanna del the text in the
richTextBox.

Hopefully, I specify the issues clearly.

It is welcome to give me any feedback,

Thanks in advance,

Cordially,

Lou.

Sep 2 '06 #1
0 1426

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by pinocchio | last post: by
reply views Thread by Nathan | last post: by
2 posts views Thread by Fei | last post: by
8 posts views Thread by =?Utf-8?B?bWljaGFlbCBzb3JlbnM=?= | last post: by
4 posts views Thread by =?Utf-8?B?Unlhbg==?= | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.