I want to be able to close a window smoothly by making it slowly get smaller from all sides.
I’ve given this a lot of thought and the closest I have come is putting this code in a timer that’s activated when a close button is clicked:
if frmLogin.Width > 25 then
This works as I want but it’s not smooth whatsoever.
I can make it smooth when only changing the Width and Height but it only gets smaller from the right and bottom sides, and also it’s too slow because I cannot make the timer’s period less than 1 (or is there a way?).
Is there another way to smoothly close a window? It’s like tweening, if that’s a known thing.
Thanks for your help.