Click here to Skip to main content
15,888,454 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have two Form called Form 1 and Form 2. In Form 1 I have {Class Item()} and {List<item> lst = new List<item>();}. So now, I want to send all property from {lst} to Form 2 and must not use SQL. Thanks for your comment.

I using Visual Studio 2022 and C#.

What I have tried:

I used delegate, constructor but these ways just swap one property.
Posted
Updated 24-Aug-22 3:43am
Comments
CPallini 24-Aug-22 9:05am    
Why don't you simply pass a reference of the list to the Form2 ?
LearnCodeHard 24-Aug-22 9:20am    
I am a beginner. I don't quite understand what you mean. Could you be more specific, please! If possible, I would like to see your example Code. Thanks for your comment.

1 solution

Our Griff gently provides some tips on this very topic, start with: Transferring information between two forms, Part 1: Parent to Child[^].
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900