G
Guest
I have a windows form (a). On the form there is a search button that causes
another windows form (b) with a datagrid used to display the retrived data
from the SQL database. I would like to close form (a & b) when I select the
requested record. And reopen form (a) and display the selected record. I have
tried 'Owner.Close():'. The code thats used to call the search form (b)
follows:
private void btFind_Click(object sender, System.EventArgs e)
{
oclose = 1; // setup to do a close after the search is complete.
SearchOwner dddd = new SearchOwner(txtSearch.Text);
dddd.Show();
txtSearch.Text = string.Empty; // Clear the search field
}
Can someone give me some help thanks.
another windows form (b) with a datagrid used to display the retrived data
from the SQL database. I would like to close form (a & b) when I select the
requested record. And reopen form (a) and display the selected record. I have
tried 'Owner.Close():'. The code thats used to call the search form (b)
follows:
private void btFind_Click(object sender, System.EventArgs e)
{
oclose = 1; // setup to do a close after the search is complete.
SearchOwner dddd = new SearchOwner(txtSearch.Text);
dddd.Show();
txtSearch.Text = string.Empty; // Clear the search field
}
Can someone give me some help thanks.