K
K
KKOOLL2021-12-30 04:51:42
C++ / C#
KKOOLL, 2021-12-30 04:51:42

Passing a value to another class?

Hello, there are 2 forms. In the first (main) a request is made to the database and from there I get the value of int. Next, the second form is launched. How to pass an int value from the first form to the second?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Voland69, 2021-12-30
@Voland69

A message, an event, a second form method call from the first form, or even in the second form's constructor.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question