M
M
mesepib7792021-07-06 06:38:38
C++ / C#
mesepib779, 2021-07-06 06:38:38

How to save and load dynamically form controls?

How to save and then load data from textboxes?

Roughly speaking, so that you can use the code to fill textboxes when loading through a loop through all controls. Taking the name of the box's text and getting a value for it.

I thought to store everything in json, but got stuck at the moment of working with dynamic keys. In order not to prescribe hundreds of values ​​by hand. But working with dynamic keys in c# won me over. Apparently there is some other way to store
{name: value}

Answer the question

In order to leave comments, you need to log in

2 answer(s)
H
HemulGM, 2021-07-06
@HemulGM

List all controls for a specific container on which your "textboxes" lie and load/save

D
d-stream, 2021-07-06
@d-stream

The normal way to serialize

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question