private void button3_Click(object sender, EventArgs e) { frmaddreg rg = new frmaddreg(fname); rg.Show(); }