private void cbtnnew_Click(object sender, EventArgs e) { currentform cf = new currentform(); cf.Show(); con.Open(); SqlCommand cd = new SqlCommand("SELECT TOP 1 RIGHT(AccountNo,1)+2 From cuform order by 1 desc", con); SqlDataAdapter da = new SqlDataAdapter(cd); object VALUE = cd.ExecuteScalar(); VALUE = "accno" + VALUE; caccno.Text = VALUE.ToString(); }
private void editMenu_Click(object sender, EventArgs e) { currentform cf = new currentform(); cf.Show(); }