A
A
ArsenBor662019-05-09 16:33:02
C++ / C#
ArsenBor66, 2019-05-09 16:33:02

How to hide WindowsForms form elements in VisualStudio for Development?

There are elements on the form. When you click on a certain button, these elements should be hidden and others should be displayed. How can I place others on an already existing form with elements? to switch if the old ones get in the way?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
BasiC2k, 2019-05-09
@BasiC2k

Try placing items on a GroupBox or Panel and then change the GroupBox/Panel's Visible property.
In such cases, at the development stage, I lay out the GroupBox on the form to check the display in the IDE interface, and in the code (depending on the situation) I change Visible and Location - i.e. I move the GroupBox/Panel to the right place when the program is running.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question