private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            frmoptions f = new frmoptions();

            this.Hide();
            f.Show();
        }
        private void button1_Click(object sender, EventArgs e)
        {
            localhost.Service1 s = new localhost.Service1();
            bool isvalid, isvalidpassed;

            s.isvalid(txtfname.Text, txtlname.Text, txtreg.Text, txtpassword.Text, out isvalid, out isvalidpassed);

            if (isvalid)
            {
                MessageBox.Show("Valid user");
                frmoptions j = new frmoptions();
                this.Hide();
                j.Show();
            }
            else
            {
                MessageBox.Show("inValid user");
            }
        }