Click here to Skip to main content
12,396,461 members (71,844 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: VB VB.NET 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 18:17pm
Updated 10-Dec-11 18:49pm
v4
Comments
SAKryukov 11-Dec-11 0:50am
   
Are you serious? If you said it's a pseudo-code...
--SA
SAKryukov 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 11-Dec-11 0:45am
   
Thanks but can you make it so it will keep the font Style.
SAKryukov 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 11-Dec-11 0:57am
   
See this :

RichTextBox1.Font = New Font(RichTextBox1.Font.FontFamily, RichTextBox1.Font.Size + 1, RichTextBox1.Font.Style)
SAKryukov 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 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: 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
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.160721.1 | Last Updated 2 Nov 2012
Copyright © CodeProject, 1999-2016
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