There is a tabControl
, on it 3 tabs 1 is always used 2 is not, how best to hide 2 tabs when not needed or to build the tab
itself dynamically? tab
is in a new form, so every time it is opened it is re-created.
- How much data is displayed in the tabs? Is this a dataGrid with a bunch of rows or is it just a few controls? - Drac5
- @ Drac5, in one heap of labels, but they are created dynamically and a couple of pictures, in another there are 10 labels and an image, and the third is shown constantly. - cyber_ua
|
1 answer
If there really are not so many data and their number does not change after the opening of the form, then I suggest not to bother and fill in all the tabs when opening the form.
If suddenly the content of one of the tabs depends on the data in the other tabs, then it makes sense to update the tabs dynamically.
- Tabs depend on the contents of the selected file from the list. I will do dynamically. thank. - cyber_ua
|