表单是否已调整大小. [英] Form Resized or not..

查看:68
本文介绍了表单是否已调整大小.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨朋友..
我想知道表单是否已调整大小..
如果调整大小..那么我想知道它是增加还是减少了表格的大小.

谁能帮我..

在此先感谢..

Hi friends..
I want to know whether the form is resized or not..
if resized.. then i want to know is it increasd or decreased size of the form.

can anyone help me..

thanks in advance..

推荐答案

窗体总是被调整大小. :-)那么,调整大小相比又是什么呢?处理System.Windows.Forms.Form.Resize事件或覆盖System.Windows.Forms.Form.OnResize方法.在处理程序(或重写的方法的主体)中,执行所需的操作:记住旧" Form.Size,设置布尔标志"IsResized"或实现您的问题可能暗示的其他逻辑.

—SA
Form is always resized. :-) So, resized compared to what? Handle System.Windows.Forms.Form.Resize event or override System.Windows.Forms.Form.OnResize method. In the handler (or the body of overridden method) do what you want: remember "old" Form.Size, set a Boolean flag "IsResized" or implement the other logic you might imply by your question.

—SA


这篇关于表单是否已调整大小.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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