Martin Ch
Martin Ch

Reputation: 1367

Tabcontrol tabs order

in c#, winforms, I have a tabcontrol that contains some pages, I dont know how many, but I need to send one tab (addTab) always to the end, any hint how to do that?

Upvotes: 1

Views: 732

Answers (1)

Frédéric Hamidi
Frédéric Hamidi

Reputation: 263167

You can modify the TabPages collection:

yourTabControl.TabPages.Remove(addTab);
yourTabControl.TabPages.Add(addTab);

Upvotes: 1

Related Questions