W
W
WarMind2021-06-17 11:25:06
C++ / C#
WarMind, 2021-06-17 11:25:06

How to make a next button on a form?

Hi all!
There are 10 labels on the form, each of them contains different information. How to implement so that every time you click on the same button, the next label appears, and the previous one disappears (something like a button next)
Thanks in advance

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Ronald McDonald, 2021-06-17
@WarMind

If the labels are set statically, then enter a variable that stores a number from 0 to 9, when you click on the button, make the label with index X active (show/hide), and hide X-1.
If the labels are generated dynamically, then you already have to look, but in 99% of the case, do exactly the same.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question