Hi
I'm having a bit of trouble with removing a tab from a tabcontrol.
The user can dynamically add tab, so obviously a way to close them is needed.
First I tried to somehow a button to the tablabel but that has proven to be a little difficult.
Now I just want to close a tab when the user makes a doubleclick on the tablabel.
But the doubleclick event doesn't tell me which tab was clicked,
it doesn't even tell me the mouse position.
The clicked event passes the mouse position but I still don't know which tab was clicked.
Any idea how I can realize this?
I'm having a bit of trouble with removing a tab from a tabcontrol.
The user can dynamically add tab, so obviously a way to close them is needed.
First I tried to somehow a button to the tablabel but that has proven to be a little difficult.
Now I just want to close a tab when the user makes a doubleclick on the tablabel.
But the doubleclick event doesn't tell me which tab was clicked,
it doesn't even tell me the mouse position.
The clicked event passes the mouse position but I still don't know which tab was clicked.
Any idea how I can realize this?