winforms - how to put objects of a class into a list in c# windows form -


i have created class named field. in windows form can add object of class. , in windows form, wanna show objects. should do?

field class

public  class field {  } 

form1

public partial class form1 : form {     public form1()     {          initializecomponent();         field objectfield = new field();         form2 objform2 = new form2(objectfield);     } } 

form2

public partial class form2 : form {     public form2()     {          initializecomponent();     }     public form2(object o)     {         // here can show field class object , want     } } 

Comments

Popular posts from this blog

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

angularjs - Showing an empty as first option in select tag -

php - Cloud9 cloud IDE and CakePHP -