How can I load new data into calling form when the called form is closed?
For example,
I have 2 form:
form A and form B
form A has combobox (which has listitems “Paris”, “Rome”, “Madrid” =>the listitem comes from database )
form A calls form B (show dialog)
In form B, I add new city for example “London”
when I close form B, I want combobox in form A to load city data again
(now, the list contains “Paris”, “Rome”, “Madrid”, “London”)
How can I deal with this problem?
There are few ways of doing this. Here is one of the ways.
Pass FormA as a parameter to the FormB constructor.
In FormB Class
In FormA Open FormB as below