I do not understand a little what you are asking, so forgive me if this does not answer the question.
Assuming that the possible values ββare known in advance and that the number is modest - like the three in your example - the easiest way is to include all the controls on the form using "visible = false", and then set your Load method to true to the one that Do you want to.
If the number of possibilities is very large or dynamic, so that you donβt even know what the possibilities are during coding, you can put a wrapper, say div, and add elements to the βcontrolβ property. But I would avoid this, if at all possible, because it would be very difficult to maintain: future programmers do not even know what controls can be on the screen.
source share