5.2.3.3 Excel VBA窗体的Resize事件
时间:2022-06-13 15:04:56
就在窗体变得可见的一刹那之前,将会发出Resize事件。通常可以利用这一事件提
的便利,重新安排窗体上的控件,使得它们在屏幕上有一个很好的布局。当用户手动调
窗体大小或者在程序代码中调整窗体尺寸的时候,Resize事件也会发生。
举例来说,下面的代码能够将txtCustomer文字框右边界扩展到窗体右边界,而
txtNotes多行文字框扩展到窗体的右边界和下边界:
Private Sub Form Resize(
ith Me
txtCustomer.width-.Scalewidth-txtCustomer.Left
txtNotes.width-.Scalewidth-txtNotes.Left
txtNotes.Height-.ScaleHeight-txtNotes.Top
End With
End Sub
标签:事件,扩展到,窗体,边界,Excel教程
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
如何在word 2016形状中添加文字
2022-07-08 06:19:59
![](https://img.aspxhome.com/file/2023/9/32789_0s.jpg)
excel表格中怎么制作变形文字? excel艺术字的制作方法
2023-08-07 13:55:41
![](https://img.aspxhome.com/file/2023/8/40508_0s.png)
Excel怎么插入气泡图
2022-01-30 00:22:06
![](https://img.aspxhome.com/file/2023/6/54966_0s.gif)
在EXCEL里面怎么对文字竖着排版
2022-07-09 15:34:52
在Word 2007大纲视图中使用的键盘快捷键?
2022-07-19 22:00:11
Excel中快速找出错误的身份证号码的方法
2023-03-26 11:21:06
![](https://img.aspxhome.com/file/2023/8/43328_0s.jpg)
Excel怎么提取身份证中的出生日期?
2022-09-23 04:20:41
![](https://img.aspxhome.com/file/2023/7/a143647_0s.jpg)
Win10 1909系统怎么禁止开机启动项?Win10 1909开机启动项禁止教程
2023-11-12 22:20:34
![](https://img.aspxhome.com/file/2023/4/48774_0s.jpg)
Excel如何快速核对两个表格数据差异
2023-03-12 20:37:07
![](https://img.aspxhome.com/file/2023/6/a139986_0s.jpg)
excel表格中怎么清除下拉列表选项?
2022-10-14 08:01:48
![](https://img.aspxhome.com/file/2023/7/41267_0s.jpg)
【图文教程】Excel正负坐标轴图表怎么做?
2022-10-08 21:42:20
![](https://img.aspxhome.com/file/2023/9/42719_0s.png)
Win10专业版如何窗口化运行游戏?Win10专业版窗口化运行游戏方法
2023-12-14 05:49:52
![](https://img.aspxhome.com/file/2023/1/51951_0s.jpg)
Word悬挂缩进设置
2023-11-01 06:51:13
![](https://img.aspxhome.com/file/2023/6/34496_0s.gif)
Word无法在正常模式下打开
2023-03-12 14:20:59
Win10 21H1系统怎么创建本地账户?
2023-11-24 10:29:58
![](https://img.aspxhome.com/file/2023/3/50853_0s.jpg)
两个技巧教你如何在Excel2003中合并单元格
2023-01-02 16:37:17
![](https://img.aspxhome.com/file/2023/1/a143151_0s.jpg)
Excel做自动统计课时数地多彩课程表
2023-02-19 21:11:09
![](https://img.aspxhome.com/file/2023/3/38883_0s.jpg)
巧用Word的EQ域代码制作音乐简谱
2023-12-04 22:23:03
excel 设A列超链接为B列 把A列、B列合并到C列
2022-11-11 06:53:12
word2010段落缩进设置
2023-12-13 14:39:42