private void button1_Click(object sender, EventArgs e) { String userid = this.textBox1.Text; String passwd = this.textBox2.Text; MyService.LoginService srv = new MyService.LoginService(); srv.Url = ""; String[] a=srv.loginCheck(userid, passwd); MessageBox.Show(a[0]+"\n"+a[1]); }