© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•7mo ago•
19 replies
brigga

Application Help

There is no specific program these questions are limited too, just general C# questions. I'm very new to C# but do have a good bit of experience in Lua and Python

First question is how do I repeat certain lines of code? Im assuming with a function. I can send the code if needed but basically it asks for an input and gives and answer but after it gives the answer it just says "press any key to close this window" i would like it to be something along the lines of " press (key) to close window or press (key) to re-enter text" i'm sure its fairly easy to do this, i just cant find any help on this specific issue on youtube/google.

Second is how do I turn this code into 1 .exe file? i think its simple to do but im using a nuget packege for the application so it needs a dll and I cant figure out how to compile it into one exe.

third is a minor thing that just kind of bugs me but after it displays the info it brings up some debugging info and shows a directory and I would rather that not be there. the stuff i would rather not be there is circled

im incredibly sorry because looking back at this message its worded kind of hard to understand I feel like. i cant find specific answers to these questions online so i came here. if you need the code let me know. its just a basic geolocator that i saw online was a fairly easy beginner program to make. its made on visual studio 2022.
Screenshot_2025-07-20_154923.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

❔ Console Application Authentication help
C#CC# / help
4y ago
❔ Help with building library application
C#CC# / help
3y ago
❔ help with maximising screen application
C#CC# / help
3y ago
I need help with an application
C#CC# / help
2y ago