title: c# Text adventure on windows forms?
body: <p>So iv been creating text adventures on the console but I want to move on to the windows form, but im stuck, I like using switch statements for the text adventure so one console I just need to put...</p>
  
  <pre><code>Console.readline();
  </code></pre>
  
  <p>but with windows forms it different, how do I make it so when I hit the button,it copies the text in the box(the smaller one) and then run a switch statement?
  I tried searching everywhere but I cant find it, putting a switch in a loop just freezes the program, and just having the switch statement skips it. here is an example...</p>
  
  <pre><code>string choice;
  choice = userInputBox.Text;
  
  switch (choice)
  {
  
  case choice1:
  {
   //event n stuff
  }
  case choice2:
  {
   //event n stuff
  }
  
  }
  </code></pre>
  
  <p>but it runs the switch before the player cant type any input. What I want is for the program to wait until the player hits confirm to confirm there choice, then run the switch, and also have the button useable for different switch statements.</p>