See the Rubber Band Effect in a Form sample from Simon Bond at C# Corner that implements this sizing technique. Be sure to read the article Debugging "Rubber Band Effect", where Zhanbo Sun suggests a modification that handles a problem he spotted with the original code.
Contributed from George Shepherd's Windows Forms FAQ