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
Post a Comment