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 -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -