Is there a way I can set a ShowDialog() to not be topmost? I've looked at all the related SO questions, and none quite matched my situation.
What I do is open a new WinForm from a datagridview button column. This new form pulls information from a few SQLite tables and allows the user to add information to the row the button was clicked.
I open the WinForm using the code below. I use the ShowDialog() method so I can tell if the user saves the information in the form or cancels it.
Pay_Bill_Window paywindow = new Pay_Bill_Window(getClickedRowID);
if (paywindow.ShowDialog() == DialogResult.OK)
{
FillPendingPaymentDataGrid(dbAccess.GetPendingBills());
}
I do this so I can tell if I need to reload the information in the datagridview.
The information the user can fill into the window is from other sources, like a web browser, so having the form be on top of all applications is not ideal.
Is there a way I can stop the window from being on top of all applications (top-most in my series of windows is fine), or is there a way to tell what button a user clicks on another form (basically, using paywindow.Show()
and watching for a different type of return)?
Thanks for any help!