如何在调整大小之前和调整大小之后找到表格大小的差异 [英] how to find the differnce of the form size before resize and after resize

查看:73
本文介绍了如何在调整大小之前和调整大小之后找到表格大小的差异的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好朋友..
我只想在调整大小之前和调整大小之后找到表格大小,还发现大小的差异..

任何人都给我建议..

在此先感谢...
Harish

hello friends..
I just want to find the form sizes before resize and after resize and also find the difference of the size..

any one give me the suggestions..

Thanks in Advance...
Harish

推荐答案

具有表单的Size PreviousSize成员,在事件System.Windows.Forms.Form.Resize的处理程序中对其进行更新.或者,重写虚拟方法System.Windows.Forms.Form.OnResize,这更方便.读取当前的System.Windows.Forms.Form.SizeSystem.Windows.Forms.Form.ClientRectangle.Size(可能更重要).此时,在事件处理程序的代码中,您将有两个大小值,上一个和当前.

—SA
Have a Size PreviousSize member of the form, update it in the handler of the event System.Windows.Forms.Form.Resize. Alternatively, override virtual method System.Windows.Forms.Form.OnResize, which is more convenient. Read current System.Windows.Forms.Form.Size or System.Windows.Forms.Form.ClientRectangle.Size (can be more important). At this point at the code of event handler you will have two values for the size, previous and current.

—SA


这篇关于如何在调整大小之前和调整大小之后找到表格大小的差异的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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