Jump to content

.NET Help Urgentttt pleaseeeeee


ajay1920

Recommended Posts

Class SecondForm

{

public List<T> Collection {get; set;}

public SecondForm(List<T> col)

{

Collection = col;// this is the collection that is passed from firstform which is now available in secondfrom for you to use in form_load etc

}

}

 

Class FirstForm

{

public void PassValues()

{

var data = new List<T>();

var objSecondForm = new SecondForm(data);

objSecondForm.Show();

}

}

Link to comment
Share on other sites

2 hours ago, ajay1920 said:

How to pass collection of values from one windows form to another in C#. Can someone send me the code please...

Thanks in advance....

evvarinaina support pettukovachuu kadha...ila lat minute tension endhuku ani

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...