c# - How to create a window that blocks the parent in WinForms -
i have order form page within program building in c# windows forms, want make user can add items order using separate pop window displays list of products user can select. once item selected pop window closes , item added order form, item adding process can repeated necessary.
my question is, in addition showing window, how pass details of order selected 1 form another?
use dialog.
if call .showdialog()
on form
, block until form closed.
this means can following:
// la la normal code var itemselect = new itemselectionform(); itemselect.showdialog(); // check have selected if (itemselect.itemlist.selecteditem != null) { // item adding code // ... // use itemselect.itemlist.selecteditem selected item popup form }
Comments
Post a Comment