Maria João
Maria João

Reputation: 189

Tab Page add a new property in C# (winform)

I need to know how could i add a new property to a tab page.

Could you help??

Thanks in advance

Maria

Upvotes: 2

Views: 1526

Answers (2)

Dave Markle
Dave Markle

Reputation: 97671

Well, one little trick you could use is to put your properties inside your own custom object or structure, and then assign that object to the TabPage's .Tag property, which takes an Object.

Upvotes: 2

Gerrie Schenck
Gerrie Schenck

Reputation: 22368

Derive a class from TabPage and call it MariaTabPage or something. Add the extra property there. After that populate your TabControl with MariaTabPages.

Upvotes: 6

Related Questions