I have a lot of controls in forms that move around dynamically depending on a few different things (specifically talking about the '.Top' property). Some of these forms will reset the position of the controls to their original position when moving to design view, but some don't, which causes a lot of controls to overlap. This means I need to fix the position of all my controls when I enter design view if I want to make changes.
I can't figure out what the difference is between the forms that reset the position of controls and the ones that do not. I tried putting code in the On_Close and On_Unload events to reset the positions, but this gives me the error "object either does not exist or isn't open" no matter which event I used.
How do I ensure the controls will reset back to their original positions when in design view?
Any help is appreciated!