private void button1_Click(object sender, EventArgs e) { Listen a = new Listen(); var s = a.output(); Console.Out.Write(1); MessageBox.Show(s); // AnalyzeSocket.query(); }