Click here to Skip to main content
14,451,428 members
Rate this:
Please Sign up or sign in to vote.
See more:
Richtextbox1.font.size = (+1)


code don't work?????
I want to add this to my text editor but how?
Also please don't make the code as new font... and make it keep so it will keep the Font Style.
please help me, please :)
Posted
Updated 10-Dec-11 19:49pm
v4
Comments
   
Are you serious? If you said it's a pseudo-code...
--SA
   
And what's the type of your rich text box? Do you think there is only one?
--SA
Rate this:
Please Sign up or sign in to vote.

Solution 2

Try this code it's 100% working :)
RichTextBox1.Font = New Font(RichTextBox1.Font.FontFamily, RichTextBox1.Font.Size + 1, RichTextBox1.Font.Style)

I hope it will solve your Problem.
   
v2
Comments
Mathsquare 11-Dec-11 0:45am
   
Thanks but can you make it so it will keep the font Style.
   
Yes, the answer is not perfect, but what about you? What makes it so difficult to look at the Font help page and use another constructor? Spend just a minute to solve you own problem.
--SA
Manoj K Bhoir 11-Dec-11 0:57am
   
See this :

RichTextBox1.Font = New Font(RichTextBox1.Font.FontFamily, RichTextBox1.Font.Size + 1, RichTextBox1.Font.Style)
   
Exactly. Do use a favor, move it to the body of your answer, just to justify my vote of 5 I gave you in advance. :-)
--SA
Manoj K Bhoir 11-Dec-11 1:04am
   
Thanks SAKryukov for Suggestion and your 5! :)
Monjurul Habib 11-Dec-11 1:45am
   
my 5!
Manoj K Bhoir 11-Dec-11 1:50am
   
Thank You Monjurul !
Rate this:
Please Sign up or sign in to vote.

Solution 3

thanks this works
your friend dkg
my email: e-mail removed
my project name : skypad so many features
   
v2

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




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100