private void button2_Click(object sender, EventArgs e) { Class1 c1 = new Class1(); MessageBox.Show(c1.return_str(textBox1.Text)); }