private void cmdLogin_Click(object sender, EventArgs e) { Server.Service1 server = new Server.Service1(); server.registration(txtUsername.Text, txtPassword.Text); MessageBox.Show("User Registered!"); }