Visual Studio 2022 and PS Tools save issue

i have vs 2022 community edition and the powershell tools, i am making a Windows Form app and struggling a bit with something. when i get my form looking the way i like it i saved it. then a couple days later i came back and added some functions to the code for buttons, datagridview and textboxes. Now, here is where it gets weird, i have the code and i go and in the designer lets say move a button down a bit and save it, ALL of my functions and logic are gone!. does anyone have any ideas? also i have 1 button in a spot where its off a bit and i move it back see its fine and save and run the app and its back to the same spot. or if i close VS and reopen it after its saved its back to the same spot just off.