---
title: "How to make a global list in c#"  
description: "How to make a global list in c#"  
author: "Anonymous User"  
published: 2013-12-27  
updated: 2013-12-27  
canonical: https://www.mindstick.com/forum/1847/how-to-make-a-global-list-in-c-sharp  
category: "c#"  
tags: ["c#"]  
reading_time: 1 minute  

---

# How to make a global list in c#

I have three [windows](https://www.mindstick.com/articles/311752/how-to-install-and-use-the-google-wifi-software-on-a-windows-or-mac-computer) [forms](https://www.mindstick.com/interview/34192/what-is-the-purpose-of-the-authentication-mode-forms-element-in-web-config) in my [project](https://www.mindstick.com/articles/105927/how-to-excel-at-managing-multiple-projects), and I have an [object class](https://www.mindstick.com/articles/11908/object-class-in-java). How can I make a list of those [objects](https://www.mindstick.com/forum/145447/what-are-objects) that will be available for all three forms to use?

## Replies

### Reply by Anonymous User

Hi John,

You could create a class containing an instance of your object:

```
public class MyClass{    public static
List<string> MyList {get; set}}
```

Then you can access it from your form

MyClass.MyList = new List<string>();

Obviously string will be replaced with the name of your object.


---

Original Source: https://www.mindstick.com/forum/1847/how-to-make-a-global-list-in-c-sharp

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
