根据c#win中插入的数据,增加richtextbox的高度.形式 [英] Increasing height of richtextbox according to data inserted in c# win. form

查看:102
本文介绍了根据c#win中插入的数据,增加richtextbox的高度.形式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当用户在运行时向其中插入数据时,如何增加RichTextBox的高度.我正在使用胜利.表格C#.


在此先感谢

[Agent_Spock]
-更改了问题标题
-使问题的内容具有相关性
-添加了适当的标记

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

推荐答案



您可以使用: Graphics.MeasureString [ http://msdn.microsoft.com/zh-cn/library/system.windows.forms.control.getpreferredsize.aspx [ MesureText [
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


这篇关于根据c#win中插入的数据,增加richtextbox的高度.形式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆