文件名称:11110
- 所属分类:
- Windows编程
- 资源属性:
- [Text]
- 上传时间:
- 2012-11-26
- 文件大小:
- 1kb
- 下载次数:
- 0次
- 提 供 者:
- xiabi*****
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
Option Explicit
Private InitWidth As Long Form 的原始大小
Private InitHeight As Long
Private Sub Form_Load()
InitWidth = ScaleWidth
InitHeight = ScaleHeight
Dim Ctl As Control
记录每个 Control 的原始位置、大小、字型大小, 放在 Tag 属性中
On Error Resume Next 确保left, top, width, height, Tag属性没有全有的Control
For Each Ctl In Me 也能正常执行
Ctl.Tag = Ctl.Left & " " & Ctl.Top & " " & Ctl.Width & " " & Ctl.Height & " "
Ctl.Tag = Ctl.Tag & Ctl.FontSize & " "
Next Ctl
On Error GoTo 0
End Sub
Private Sub Form_Resize()
Dim D(4) As Double
Dim I As Long- Option Explicit
Private InitWidth As Long Form 的原始大小
Private InitHeight As Long
Private Sub Form_Load()
InitWidth = ScaleWidth
InitHeight = ScaleHeight
Dim Ctl As Control
记录每个 Control 的原始位置、大小、字型大小, 放在 Tag 属性中
On Error Resume Next 确保left, top, width, height, Tag属性没有全有的Control
For Each Ctl In Me 也能正常执行
Ctl.Tag = Ctl.Left & " " & Ctl.Top & " " & Ctl.Width & " " & Ctl.Height & " "
Ctl.Tag = Ctl.Tag & Ctl.FontSize & " "
Next Ctl
On Error GoTo 0
End Sub
Private Sub Form_Resize()
Dim D(4) As Double
Dim I As Long
Private InitWidth As Long Form 的原始大小
Private InitHeight As Long
Private Sub Form_Load()
InitWidth = ScaleWidth
InitHeight = ScaleHeight
Dim Ctl As Control
记录每个 Control 的原始位置、大小、字型大小, 放在 Tag 属性中
On Error Resume Next 确保left, top, width, height, Tag属性没有全有的Control
For Each Ctl In Me 也能正常执行
Ctl.Tag = Ctl.Left & " " & Ctl.Top & " " & Ctl.Width & " " & Ctl.Height & " "
Ctl.Tag = Ctl.Tag & Ctl.FontSize & " "
Next Ctl
On Error GoTo 0
End Sub
Private Sub Form_Resize()
Dim D(4) As Double
Dim I As Long- Option Explicit
Private InitWidth As Long Form 的原始大小
Private InitHeight As Long
Private Sub Form_Load()
InitWidth = ScaleWidth
InitHeight = ScaleHeight
Dim Ctl As Control
记录每个 Control 的原始位置、大小、字型大小, 放在 Tag 属性中
On Error Resume Next 确保left, top, width, height, Tag属性没有全有的Control
For Each Ctl In Me 也能正常执行
Ctl.Tag = Ctl.Left & " " & Ctl.Top & " " & Ctl.Width & " " & Ctl.Height & " "
Ctl.Tag = Ctl.Tag & Ctl.FontSize & " "
Next Ctl
On Error GoTo 0
End Sub
Private Sub Form_Resize()
Dim D(4) As Double
Dim I As Long
相关搜索: form_resize
(系统自动生成,下载前可以参看下载内容)
下载文件列表
控件随窗体大小改变.txt