Windows(??) is always trouble.
They, meaning all the bosses and the top porgrammers, never took time to "design" the program- a flow chart of each required step and map how they interact.
I did that quite a few years ago to write a program for the foam cutter. I've used variations for years to lay out airfoils and their co-ordinates.
Phil Cartier
(717) 566-3810