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

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -