private void update_Click(object sender, EventArgs e)
        {
            this.Hide();
            UpdateTransaction Add_page = new UpdateTransaction();

            Add_page.Show();
        }
        private void Edit_Click(object sender, EventArgs e)
        {
            this.Hide();
            UpdateTransaction addtran = new UpdateTransaction();

            addtran.transnum.Text        = transnum.Text;
            addtran.dateTimePicker1.Text = transdate.Text;
            addtran.sellingprice.Text    = selectprice.Text;
            addtran.sellerssn.Text       = sssnselect.Text;
            addtran.buyerssn.Text        = bssnselect.Text;
            addtran.propertynum.Text     = selectpno.Text;
            addtran.agentid.Text         = agentid.Text;

            //addtran.propertytype.Text = selectptype.Text;
            //addtran.profitbox.Text = selectprofit.Text;


            addtran.Show();
        }