Reputation: 189
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
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
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