C
C#2w ago
Shaken

i broke my c sharp win form by re pasting whole code then broke so tried to go back now its saying e

plz help now
17 Replies
Starlk
Starlk2w ago
what do you mean by "broke"? is there an exception being thrown, or is the code you wrote not behaving as you expected? if it's the former please share us the exception message
Shaken
ShakenOP2w ago
like idk how to explain i am new i tried to get chat gpt to add something on for me but then when i pasted that it it like rejected the code and now on my forms it shows like white screens with erroes errors
Starlk
Starlk2w ago
can you share the $code? and what kind of errors are you getting, can you also share that
MODiX
MODiX2w ago
To post C# code type the following: ```cs // code here ``` Get an example by typing $codegif in chat For longer snippets, use: https://paste.mod.gg/
Starlk
Starlk2w ago
we can't help you without knowing what the error is or what the code you wrote is
Shaken
ShakenOP2w ago
i can ss in a call if thaty would help
Starlk
Starlk2w ago
I wish I could join but sorry I can't
Shaken
ShakenOP2w ago
ok well i cant rlly paste it ik thats not much help is there a way of saving everything i have rn then i might close it w out saving bc i think my old version will work but i wanna save a copy of this one just in case
Starlk
Starlk2w ago
I believe you can just close Visual Studio by clicking the close button and it will automatically save the solution and all files, you can also just to file and click save if you want to be extra sure
Shaken
ShakenOP2w ago
i dont want to save the current version i just wanna save a copy of it bc then if i reopen it it might re open an old version bit when i save as i have to to each one seprate cus i got a load of different forms open?
Starlk
Starlk2w ago
I'm not sure if I understood what you mean you're probably not using a VCS, so I guess the best option is to copy the whole folder, and then manually track down the changes you made and revert them.
Shaken
ShakenOP2w ago
how do i do that cus when i use the back arrow it dont go back far enough
Starlk
Starlk2w ago
you can right click on the solution item in the solution explorer and click on open in explorer
Shaken
ShakenOP2w ago
i am tryna get a photo pf what i mean its copmpletely floped this aint good for me
Starlk
Starlk2w ago
a screenshot would help
Shaken
ShakenOP2w ago
No description
Shaken
ShakenOP2w ago
we might be safe cus when i run it it works but when i go onto the form tab that is there with then means i can edit that form anymore

Did you find this page helpful?