teixeira
Regular
Hi all,
At some months ago I made this question, but I still have not understand well.
The dought is about passing values, data between diferent forms in c#.
I'm developing an application in a MDI environment, and sometimes i need to pass some values from one forms to others, for example: I have the main form (parent) and for each child form i open, i make visible an item in the menubar. this item alows the user to navigate between openned forms.When i close the child form, i want to set the item (corresponding to this child form) in the parent form as uncheked and invisible.
I searched in some sites and the common way I found its to create a delegate and public function or event and with these we could pass information from one site to other, but all the examples seamed to me not very clare, and i still not able to to do what i need.
Does anyone has an true example to show me or can paste and comment a piece of code here , for me to try understand better this?
Any help will be very welcome,
Best regards,
Teixeira
At some months ago I made this question, but I still have not understand well.
The dought is about passing values, data between diferent forms in c#.
I'm developing an application in a MDI environment, and sometimes i need to pass some values from one forms to others, for example: I have the main form (parent) and for each child form i open, i make visible an item in the menubar. this item alows the user to navigate between openned forms.When i close the child form, i want to set the item (corresponding to this child form) in the parent form as uncheked and invisible.
I searched in some sites and the common way I found its to create a delegate and public function or event and with these we could pass information from one site to other, but all the examples seamed to me not very clare, and i still not able to to do what i need.
Does anyone has an true example to show me or can paste and comment a piece of code here , for me to try understand better this?
Any help will be very welcome,
Best regards,
Teixeira