title: Console application string output to another web application text box
body: <p>I build a console application which uses a scanner to scan the QR code and output the values as strings in to a console application.</p>
  
  <p>I have separate web application which uses this console output as a textbox input in each time user scans the QR code. I don't know how to make a connection between these two application since they run separately.</p>
  
  <pre><code>public static void InitializeSettings() {
              SerialPortManager _spManager = new SerialPortManager();
              SerialSettings mySerialSettings = _spManager.CurrentSerialSettings;
  
              _spManager.NewSerialDataRecieved += new EventHandler&lt;SerialDataEventArgs&gt;(_spManager_NewSerialDataRecieved);
  
              // use to initialize serial port settings
              mySerialSettings.PortName = "";
              mySerialSettings.BaudRate = ;
              mySerialSettings.DataBits = ;
              mySerialSettings.Parity = System.IO.Ports.Parity.None;
              mySerialSettings.StopBits = System.IO.Ports.StopBits.One;
              _spManager.CurrentSerialSettings = mySerialSettings;
  
              // Start thread to start listening
              Thread listenThread = new Thread( _spManager.StartListening);
              listenThread.SetApartmentState(ApartmentState.STA);
              listenThread.IsBackground = false;
  
              listenThread.Start();
              Console.ReadKey();
          }
  
          static void _spManager_NewSerialDataRecieved(object sender, SerialDataEventArgs e)
          {
              string data = Encoding.Default.GetString(e.Data);
              Console.WriteLine(data);
              Console.ReadKey();
          }
  </code></pre>
  
  <p>Above code prints the QR value in the console. Any idea regarding this is more helpful.</p>
  
  <p>Thanks</p>