TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
hear2058
NA
1
0
RichTextBox.SelectionFont property
Jan 17 2005 6:27 PM
I am basically writting a wordpad control using a richTextBox Control in C#. I am taking the richTextBox control and simply adding a tool bar to it so that i can change the font, alignment of text, add bullets, etc... I am finished and have it working the way I want except one thing. When I hightlight text that has more than one font, the selectionFont property returns null. For Example: I want to highlight a bunch of text with different fonts and just change the size property(the way it works in wordpad). To do this I have to create a new font object and set it equal to the selectionFont property of the richTextBox control. But doing this removes all the previous formatting. I hope this makes sense what I am trying to do. Does anyone know of a way that I can do this. Any help will be greatly appreciated. Thanks, Kheard
Reply
Answers (
1
)
Detecting how form was closed
how can i reopen only 1 time a form?