How to store the class object in the application configuration file

advertisements

I have a windows application which has more than one form. From one form another form is shown in the application. In the first form, I am creating an object for a class( which has common info among all the forms). I want to use the same object in all the other forms.

Can I save the class object in App.Config file in the first form and retrieve it in other forms? If so please tell me the way to do and If not, suggest any good way to achieve this.

Thanks in Advance


You can create a static class having static properties and refer to it whereever required.