form maximizebox 点击时触发的是R…
来源:互联网 发布:qt多进程 和linux通讯 编辑:程序博客网 时间:2024/06/01 10:51
以前理解错了,一位maximizebox点击时触发MaximumSizeChanged,原来是Resize事件,晕。
下面的代码示例处理 Form 的 Resize事件。在调整窗体大小时,事件处理程序将确保窗体仍为正方形(其 Height 和 Width 仍保持相等)。
Private Sub Form1_Resize(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Resize Dim myControl As Control myControl = sender ' Ensure the Form remains square (Height = Width). If myControl.Size.Height <> myControl.Size.Width Then myControl.Size = New Size(myControl.Size.Width, myControl.Size.Width) End IfEnd Sub
0 0
- form maximizebox 点击时触发的是R…
- 使用myeclipse的hibernate r…
- dedecms [field:array r…
- dedecms [field:array r…
- 天津网络赛 Examining the R…
- Android: R cannot&nbsp…
- rman 总结 (list r…
- This Adroid SDK r…
- 学无止境 学习是一件快乐的事情 […
- Lesson 7 Are you a teacher? 你是…
- String [] args是干什么的
- Join语句的on 与 select xxx in…
- static_cast、dynamic_cast r…
- String 的 split …
- HTML <form> 标签的 enctype 属性
- html submit 与 button 是不同的
- 触发写Redo Log的条件
- 我们正在忘却的传统文化 …
- VB2008 设置form窗体的位置
- vb2008 文件目录相关
- vb2008 文件目录相关(2)
- 今天学习使用控件集合
- 21. RequireJS
- form maximizebox 点击时触发的是R…
- 你所未知的3种 Node.js 代码优化方式
- 自己创建集合
- vb2008关闭消息框终于实现了,可以…
- 测试IE8 关闭提示对话框成功
- 2010年12月10日
- APP后端开发问题总结
- 今天终于完成了基于索引的二值图像…
- linux下配置IP地址老是忘记怎么配…