Is the Engine_Load event the Form_Load event? If not, it may explain why it does not work. That is, if the form is not loaded at the time the StateChanged event is triggered, it will not work. So make sure your code is run at or after the form is loaded.
However, we have come across a scenario where the SuspendLayout() call interfered with the original layout, so you might have to remove it. You might also need to remove the MinimumSize assignment.
Imported from legacy forums. Posted by André (had 4276 views)