Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
2 Font Questions
Message
General information
Forum:
Visual Basic
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00522622
Message ID:
00522703
Views:
12
>I have a combo box with the names of font loaded into it. When the
>user selects a font, I want to change the font of the selected text
>in a RichTextControl:
>
>
>Private Sub cboFontNames_Change()
>
> RichTextBox.SelFontName = cboFontNames.Text
>
>End Sub
>

>
>Why doesnt this work?

Is it because you need to write RichTextBox1 ?

I made this small test and it is working:
Private Sub Command1_Click()
RichTextBox1.SelFontName = "arial"
End Sub
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com
Previous
Reply
Map
View

Click here to load this message in the networking platform