Yes that would work but...

It would still allow you to drag the form beyond 320 pixels wide. The resize wouldn't take effect when you released the mouse I know. But I've seen programs where the mouse will just refuse to go another pixel when trying to resize it beyond a certain width and height.