Click here to Skip to main content
15,895,793 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
how to do this for a richtextbox.
i need the code for my text editor

This code is a bit buggy. \/ \/ \/ \/ \/ \/ \/

VB
Dim fontStyle As System.Drawing.FontStyle = RichTextBox1.SelectionFont.Style
          Dim fontName As String = ComboBox1.Text
          Dim fontSize As Integer = ComboBox2.Text
          Dim FS As New Font(fontName, fontSize, fontStyle)
          RichTextBox1.SelectionFont = FS


this code also if the fist letter of it is Bold and the other part is underline it will make it bold and I am just tiring to change the size of the Selected font.
can you please help me, Please :).
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900