C# Refresh Underlying form data

I am working on a C# winforms application.

I have Form1 and Form2.

On Form1, I have Label1.  I open Form2 by clicking on a button on Form1 (Form1 remains open as well).

When I close Form2, or perform another method on Form2, I would like to refresh the text in Form1.Label1.

Can anyone help me with the code to do this.

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Anurag ThakurTechnical ManagerCommented:
you need to implement delegate and event in this case
in form2 closing event you will raise an event which will be handled by a hanlder for the event and delegate in form1
please go through the following link as its implemeting something similar to your requirements

all the links have my reference in them :)
Cheers - Ragi
hi suggestion why dont u use events when u close form 2 fire an event which is handled in form1
when the event is fired , the event handler will have code to change the label1's text
you dont need delegates only if u are passing event values can be done without delegates
Exploring SharePoint 2016

Explore SharePoint 2016, the web-based, collaborative platform that integrates with Microsoft Office to provide intranets, secure document management, and collaboration so you can develop your online and offline capabilities.

jamesdean666Author Commented:
I am still struggling with this.. Can you please provide some code?
Anurag ThakurTechnical ManagerCommented:
the code pieces are provided in all the 3 links i have pasted
and i know that they are working

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
can you post the code snippet that you have and i can modify it to work
jamesdean666Author Commented:
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.