7,765
社区成员
发帖
与我相关
我的任务
分享
Private Sub Form_Resize() '设置窗体大小
If Me.Width <> 4040 Then Me.Width = 4040
If Me.Height < 3500 Then Me.Height = 3500
End Sub
Private Sub Form_Resize()
With Me
If .Width <> 4040 Then
.Enabled = False
.Width = 4040
.Enabled = True
End If
If .Height < 3500 Then
.Enabled = False
.Height = 3500
.Enabled = True
End If
End With
End Sub