I have MainForm on which i’ve loaded UserControl. This UserControl has few textboxes and save button. Once i click save, information from textboxes is saved to file. I want to inform MainForm that information is updated to it can reload.
How can i do that ?
Use events.
Declare an event in your
UserControl, for instance:then on save click, raise the event:
and finally attach a handler in the main form to your event: