The Application object has a Desktop Object property. For this property:
Set AutoHeight to True (you can do this in Project options or via code)
Set AutoWidth to True (again via Project Options or code)
Trao the OnResize event (in code)
Your trap for the OnResize event will then be fired when the browser window size changes (hence the desktop changes) and you can adjust form size accordingly.