Ok, so in my c# console application it starts somewhat similar to this
static void Main()
{
OpenLoginForm();
}
OpenLoginForm()
{
while(true)
{
//This breaks when user has logged in
}
}
Anything that a user tries to type in the console WILL NOT output to the console UNTIL OpenLoginForm()
has stopped running, the problem is, that when OpenLoginForm()
STOPS running any text that the user tried to type into the console BEFORE OpenLoginForm()
stopped running will output to the console AFTER OpenLoginForm()
has stopped running even though while OpenLoginForm()
was running the text DIDN'T output to the console. I need it so even if a user types in the console when OpenLoginForm()
is running, the text the user tries to input will not output even when OpenLoginForm()
stops running.
Here is a gif that shows me typing into the console when OpenLoginForm()
is running, but you will be able to see when OpenLoginForm()
stops running the text i tried to type then gets outputted even though this is what I'm trying to prevent.
Hopefully i worded this question in a way some of you will understand, I'm new to c# (I'm sure you can tell).