Solved: C# .NET - Changing the title of a tab

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Tobeon

Thread Starter
Joined
Mar 24, 2004
Messages
26
Hi all,

I was wondering if anyone knew how to change the title/name/text of an individual tab in a tabcontrol at runtime?

(the idea is the name of the tab is "Problems" but I want it to be "Problems {x}" where x is the number of current problems)

Thanks for any help you can give
 

Tobeon

Thread Starter
Joined
Mar 24, 2004
Messages
26
Ah never mind it was much easier than I thought!

int x = 7;
string title="Hello World";
TbCtrlPages.TabPages[x].Text = title;

Easy!
 
Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 807,865 other people just like you!

Latest posts

Staff online

Members online

Top