SOS, thanks for your reply.
I had tryied before in the Resize event to run the Docm.Maximize, that works but I was asked to change that because it shows the window to minimize and then maximize again.
On the other hand, I would like to try your suggestion to see if that can work better, but...