I am currently working on a winforms application that shows contacts, but I have a memory problem.
For each contact, I create a panel with labels inside the name inside for the name and number, and I will add this to my main panel. Suppose I have 1000 contacts; I would create 1000 panels along with one main panel.
My problem is that although only 10 or so Panels (contacts) are visible in one panel on the main panel, I would still collect all 1000 panels that consume a lot of memory.
I want to create only the panel that is visible in the main panel. Ideally, I want something similar to RecyclerView in android . Is there any library that looks like this in C # or Winforms?
source share