I'm creating a simple tab control that lets me filter data based on companies, but i'm having problems in this particulary situation. How could i setup a button at the end of the text on the tabcontrol to close, and have a tab with a "+" sign to add more companies based on a table on mysql?
For example:
I've got 4 tabs, with this described companies:
Test 1
Test 2
Test 3
Test 4
(+)(This tab allows me to open a winform which will have a textbox where i insert the name of the company, which is stored in a table called company.
With that in mind, I wanted something to create tabs, based on a database. When i click the add button it shows me that winform window to insert the company name and then it shows based on the company id, ascending according to company_id, with it will do something like this:
Test 1 - 0 (This tab will be the 1st)
Test 2 - 2 (This tab will be the 2nd)
And so on...
Any ideias how to do this??
(Btw, i'm a newbie yet, so don't judge me...)
What I have tried:
tryied to replicate this without programaticaly create tabs.