OK I feel stupid. I had DialogResult set to cancel for the button that opened the second modal. My first post after lurking for a few years and I make a fool of myself. :-O
ProSlacker
Posts
-
Modal form opens second modal form when OK clicked on second form both close -
Modal form opens second modal form when OK clicked on second form both closeI open a modal form to search for an order that opens another modal form to search for a customer ID to narrow the order search. When OK is clicked on the second form both modals close and return to the main form. Can someone smarter than I please point me in the right direction? code that opens first modal
private void OpenSalesOrderSearch()
{
try
{
SOSearch soSearch = new SOSearch();
if (soSearch.ShowDialog() == DialogResult.OK)
{
MessageBox.Show("custID=" + soSearch.custID);} } catch (Exception ex) { MessageBox.Show(ex.ToString()); } }
code for second modal
private void CustomerSearch()
{
try
{
CustSearch custSearch = new CustSearch();
if (custSearch.ShowDialog() == DialogResult.OK)
{
custID = custSearch.custID;
}
}
catch (Exception ex)
{
MessageBox.Show(ex.ToString());
}
}OK button code for second modal
private void btnOK_Click(object sender, EventArgs e)
{
custID = dgvCustomer.CurrentRow.Cells[0].Value.ToString();}
-
Back to the land of Bluffs and BeerLa Crosse Rocks!!! Just don't mysteriously end up in the river X| Seems be to a real problem here.
-
Hawking: Humans must colonize other planetsJeffry J. Brickley wrote:
Unfortunately the results of microgravity prolonged exposure could be worse than any other health problems: http://www.nasa.gov/audience/foreducators/k-4/features/F\_Microgravity\_Bad\_Hair\_Day.html\[^\] The most serious concern is the loss of bone calcium that increases with the length of a mission and shows no sign of cessation. The calcium loss from bones subjected to extended microgravity takes place at 10 times the rate of an elderly person suffering from osteoporosis.
If you are staying in space permenetly that wouldn't be an issue