VB Code:
Private Declare Function LockWindowUpdate Lib "user32" (ByVal hwndLock As Long) As Long
Dim LockWindow As Boolean
Dim iWidth As Integer
Private Sub Form_Load()
iWidth = Me.Width '5115
End Sub
Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
LockWindowUpdate 0&
End Sub
Private Sub Form_Resize()
On Error Resume Next
Static FirstLoad
If FirstLoad = False Then
FirstLoad = True
LockWindow = True
Exit Sub
End If
If Me.Width <= iWidth Then
If LockWindow = True Then
Me.Width = iWidth
LockWindowUpdate Me.hWnd
End If
End If
End Sub