简体   繁体   中英

passing data from combobox selected values to populate textbox in other forms

I have a program that has a main form that the user selects different options out of combobox's that progressively filter into more specific choices. an example would be first combobox has groups, the user would select a group. This selection activates the event handler that then opens up the next selection which only lists choices from the selected group.

This goes on for about 10 comboboxes.

I then have form 2,3,4,5 which are loaded into form 1 visually by docking the forms. These forms have text boxes that can be filled by user or by taking the data selected in the combobox's run through an equation and then default information will fill the textboxes.

So the problem is I am unable to take the selected items from the users' selections in the cmbox's and move then to the other forms and then load the textboxes I believe an issue i'm having is since both form 1 and 2 load at the same time and the information i'm sending is based off of selections that happen in events of form 1 that I need to create some form of update event in form 2 that refreshes the form when a selection is made on form 1, but I have no idea how to begin that.

因此在form1中引发一个事件( http://msdn.microsoft.com/zh-cn/library/9aackb16(v=vs.110).aspx ),然后在form2中填充所需的内容( 安全地 http:// /msdn.microsoft.com/zh-cn/library/a1hetckb(v=vs.110).aspx )可以在引发事件上传递参数。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM