Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要在 Windows 窗体中为 TextBox 实现一个功能(使用 .NET 2.0),这样用户应该能够使用鼠标调整 TextBox 的高度。用户将单击文本框的角(或底部)并拖动,使文本框的高度更大(或更少)。
请提供一些关于如何做到这一点的基本指南。
注意:我必须使用 VS 2005 和 .NET Framework V2.0
提前致谢-Mayur Jadhav
这里有一个类似的问题
在运行时调整控件大小
创建一个从文本框继承的自定义控件并将调整大小的代码添加到该控件中,您应该一切顺利