This is a winnet.net user interface question.
In many cases, we want to create a user interface so that you have several options, and based on the option you choose, the user interface is configured for you. For example, imagine registering a user: based on your chosen location, you may be asked to fill out various information. Usually, when I create a form for this purpose, I will create an empty panel for placement in the main form. And I will create one user control for each detailed user interface. When the form is loaded, I will create instances of user controls (representing a detailed user interface based on options) and pin them to the panel and hide irrelevant ones. When the user changes his option (perhaps through a drop-down list or using a set of radio buttons),I programmatically decide which user control should be shown and the rest hidden. All is good so far.
But this solution has a problem when you open the form in the VS-designer of forms, all that you see is an empty panel and you canβt imagine what your user control will look like. If another programmer opens your form in the designer, he will not know what is happening here, an empty panel? Then it should go to your code and find out the user controls.
So, does the user have a user control similar to tabcontrol so that all user controls can be visually displayed in the designer during development? Of course you say then use tabcontrol. But obviously, the goal is not the same as tabcontrol, but tabcontrol without the tab buttons on top. You can ask me to write a few lines of code to hide the tab buttons in the tabcontrol. Yes, we can do this, but I found that after hiding the tab buttons around the tabcontrol and other controls, there will be some space and the look is not perfect. And visually, the tab buttons take up more space than the tabs themselves, so hiding them will give you a layout problem.
, -, ? , , , , . - . . .