© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
26 replies
maroonlol

I have a problem with running my code and I'm unsure if it is Visual Studio or my Code

In the screenshot it displays my menu. Then I type my option in (1- in this case). then my command promt closes and I get this error which I didn't got before I had put it in a Menu option. When I go back on the command promt it displays my question but doesn't allow me to enter my input and ends the code. Can anyone suggest to me why this happens, or if they need to see the full code to understand.

Thank you
unknown.png
unknown.png
unknown.png
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

✅ Problem running my code
C#CC# / help
3y ago
❔ I have a problem in my code and can't find it
C#CC# / help
3y ago
Is it a problem if I don't have .csproj?
C#CC# / help
2y ago
✅ Unsure if I'm blind, the static declarations are conflicting, or Visual Studio is tweaking
C#CC# / help
8mo ago