Click here to Skip to main content
15,868,141 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi folks
How can I get the font size of a selected text on a richtextbox in VB.NET? I was trying something like this:
VB.NET
RichTextBox1.Select(0, 1)
        Dim bf As String = RichTextBox1.SelectionFont.Size.ToString


Thanks!
Posted
Comments
Kailash Polai 6-Jul-15 0:15am    
Are you getting your result or some error?
Member 10964859 6-Jul-15 12:22pm    
Hi, I got a null reference exception... I really don't know why...

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