private void btnKganya_Click(object sender, EventArgs e) { //create an object to enable us to reference kganya form and display it on click kganya kganyaForm = new kganya(); kganyaForm.Show(); }
private void btnDisplay_Click(object sender, EventArgs e) { DatabaseDisplay dbDisply = new DatabaseDisplay(); dbDisply.Show(); kganya kganyaForm = new kganya(); kganyaForm.Close(); }