Winforms控件大小限制 [英] winforms control size limit
本文介绍了Winforms控件大小限制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用面板的绘画事件来显示一个很长的图表。我遇到了.net控件的大小(高度和宽度)无声地限制为带符号的16位整数(32,767)的问题。我假设这是基本的win32限制。
I am using a Panel's paint event to display a really long diagram. I've run into the problem of .net controls size (height and width) are silently limited to a signed 16 bit integer (32,767). I'm assuming this is an underlying win32 limitation.
有没有办法解决此限制并拥有更大的控件?
推荐答案
您可以尝试拥有自己的滚动条(而不是滚动面板),然后仅绘制图中可见的部分
You can try to have your own scrollbars(rather than a scrolled panel), and then draw only the part of the diagram which is visible.
这篇关于Winforms控件大小限制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文