title: Textbox to accept enter/return
body: <p>I have the below code that allows a user to write in a executable (i.e. notepad.exe) and then clicking the start button it will start the process. </p>
  
  <p>However, how do I make the textbox accept enter/return key? I put in <code>AcceptsReturn=true</code> but it is not doing anything. I have also set in Visual Studio the property <code>Accept Return = True</code> - still nothing.</p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.ComponentModel;
  using System.Data;
  using System.Drawing;
  using System.Linq;
  using System.Text;
  using System.Windows.Forms;
  using System.Diagnostics;
  
  namespace process_list
  {
      public partial class Form1 : Form
      {
          public Form1()
          {
              InitializeComponent();
          }
  
         private void button1_Click(object sender, EventArgs e)
          {
  
              string text = textBox1.Text;
              Process process = new Process();
              process.StartInfo.FileName = text;
              process.Start();
  
          }
  
         private void textBox1_TextChanged(object sender, EventArgs e)
         {
             textBox1.AcceptsReturn = true;
         }
      }
  }
  </code></pre>