Good day. The situation is as follows: a certain amount of TabPage (tabs) is created dynamically. The result is a certain number of rows. Problem: when selecting a tab, the entire row containing this tab is moved to the first row. Question: what needs to be done so that the order of the tabs does not change?

Example:

Page1; Page2; Page3:

Page4; Page4; Page5

after selecting Page2:

Page4; Page4; Page5

Page1; Page2; Page3

1 answer 1

If you use WinForms, then the default component, in my opinion, does not allow this, this "trick" has long been. Try poking around in its properties. And why should you make it so that the order of the tabs does not change? What is your goal?

  • Yes, I am rummaging, so far to no avail. The goal is the following, I have over 100 tabs numbered. The row will fit 11, for a total of more than 10 rows. When selecting different tabs, the order of the rows is constantly changing, and this is sooo not convenient for working and searching for the right one. - Droll80
  • Make a special. A panel for searching for the required tab: a text field for searching by name and an OK button that activates the desired tab. The panel can be hidden in case of anything. - Leonard Bertone
  • Thanks for the advice, but this is not exactly what you need. The fact is that the names of the tabs are "Name - number". That is not informative. Such a search is not user friendly. - Droll80
  • Taba has a title. (by the way, you can search by titles. title (Title \ Caption) and tab name (Name \ ID) are different things). In principle, you can even add a drop-down list, so it was nice and display the tab headings there. - Leonard Bertone
  • The list is an option. If I do not find a solution to the problem, then I will try with a list. Thank. - Droll80