Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: VB.NET size font
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 Smile | :)
Posted 10-Dec-11 19:17pm
Edited 10-Dec-11 19:49pm
v4
Comments
SAKryukov at 11-Dec-11 0:50am
   
Are you serious? If you said it's a pseudo-code...
--SA
SAKryukov at 11-Dec-11 0:52am
   
And what's the type of your rich text box? Do you think there is only one?
--SA
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

Try this code it's 100% working Smile | :)
RichTextBox1.Font = New Font(RichTextBox1.Font.FontFamily, RichTextBox1.Font.Size + 1, RichTextBox1.Font.Style)
I hope it will solve your Problem.
  Permalink  
v2
Comments
Mathsquare at 11-Dec-11 0:45am
   
Thanks but can you make it so it will keep the font Style.
SAKryukov at 11-Dec-11 0:58am
   
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 at 11-Dec-11 0:57am
   
See this :
 
RichTextBox1.Font = New Font(RichTextBox1.Font.FontFamily, RichTextBox1.Font.Size + 1, RichTextBox1.Font.Style)
SAKryukov at 11-Dec-11 1:00am
   
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 at 11-Dec-11 1:04am
   
Thanks SAKryukov for Suggestion and your 5! :)
Monjurul Habib at 11-Dec-11 1:45am
   
my 5!
Manoj K Bhoir at 11-Dec-11 1:50am
   
Thank You Monjurul !
Rate this: bad
good
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
  Permalink  
v2

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

  Print Answers RSS
0 OriginalGriff 275
1 DamithSL 265
2 CPallini 235
3 Maciej Los 185
4 George Jonsson 170
0 OriginalGriff 5,415
1 DamithSL 4,422
2 Maciej Los 3,820
3 Kornfeld Eliyahu Peter 3,470
4 Sergey Alexandrovich Kryukov 2,911


Advertise | Privacy | Mobile
Web04 | 2.8.141216.1 | Last Updated 2 Nov 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

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