Click here to Skip to main content
15,887,596 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
How to increase the height of richtextbox as the user inserts data in it at runtime. i am using win. form c#.


Thanks in advance

[Agent_Spock]
- Changed the question header
- Made the content of the question relevant
- added appropriate tag
Posted
Updated 26-May-14 19:59pm
v3
Comments
DamithSL 27-May-14 1:17am    
what is the DockStyle you have used for richtextbox and panel2 ?
DamithSL 27-May-14 1:17am    
what is the DockStyle you set for richtextbox and panel2

1 solution

Hi,

You can use : Graphics.MeasureString[^]

Another function will help you : http://msdn.microsoft.com/en-us/library/system.windows.forms.control.getpreferredsize.aspx[^]

Finally This will solve you problem in desire manner : MesureText[^]

Thanks
Suvabrata
 
Share this answer
 

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