Is it possible to set ShowDialog () so that it is not the topmost? I looked through all the questions related to him, and none of them corresponded to my situation.
What I am doing is opening a new WinForm from the column column of the datagridview button. This new form displays information from several SQLite tables and allows the user to add information to the row that the button was clicked on.
I open WinForm using the following code. I use the ShowDialog () method, so I can find out 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 a datagridview.
The information that the user can fill in the window is obtained from other sources, such as a web browser, so having a form above all applications is not ideal.
Is there a way that I can stop the window from being on top of all applications (the top one in my series of windows is ok), or is there a way to tell which button the user clicks on another form (mainly using paywindow.Show() and watching another type of return)?
Thanks for any help!
source share