I
have three windowsforms in my project, and I have an object class. How can I
make a list of those objects that will be available for all three forms to use?
We use cookies to ensure you have the best browsing experience on our website. By using our site, you
acknowledge that you have read and understood our
Cookie Policy &
Privacy Policy.
You could create a class containing an instance of your object:
Then you can access it from your form
MyClass.MyList = new List<string>();
Obviously string will be replaced with the name of your object.