Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Formatting font in richtextbox
Message
 
À
25/01/2001 02:39:40
Information générale
Forum:
Visual Basic
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00468349
Message ID:
00468402
Vues:
17
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform