Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Formatting font in richtextbox
Message
 
To
25/01/2001 02:39:40
General information
Forum:
Visual Basic
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00468349
Message ID:
00468402
Views:
25
You'll need to use the SelStart, SelLen, and SelFont properties to
adjust these. You can use this example which changes the color as
a start:

http://support.microsoft.com/support/kb/articles/Q154/8/84.asp



>Hi! I would like to know how to format font for the richtextbox control that has its multiline property enabled.
>
>For example, I have:
>
>RichTextBox1.Text = "Sample File Output" + vbCrLf
>RichTextBox1.Text = "Date: " + vbCrLf
>RichTextBox1.Text = "Time: " + vbCrLf
>
>The first line of the Code above should be in bold character format while the remainder text should be in Normal Font format. Pls. note also that I'm using "Courier New" as my font.
>
>Thanks!
>
>Ramon
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform