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
fmcquaid
NA
9
0
Setting the font for different lines in a richTextBox
Dec 22 2004 6:21 PM
I am setting up a richTextBox that can be saved as a file and also printed if the user desires. My code for this richTextBox so far is. Form2.richTextBox1.Font = new System.Drawing.Font("Microsoft Sans Serif", 14F); Form2.richTextBox1.Text += " \n " + textBox1.Text + " \n"; //address Form2.richTextBox1.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F); Form2.richTextBox1.Text += " " + textBox2.Text + " \n"; //city,state,zip It sets the font to 14, then writes the line, then sets the entire box to the 10 font. What is the code for the first and third lines so the fonts are different. Or is this even possible. Thanks for any help in advance!! Frank
Reply
Answers (
1
)
Web browsers History feature in Windows application
Manipulating Word documents