TabControl

S

shahoo

I am new to C# and I have a problem with the TabControl. I want to add
a context menu to the tab with one menuItem to enable the user to
close the tabbs. But when I Right-click the tabs, the SelectedIndex of
the tab control remains the same as before (I right-click other tabbs
which are not selected). Can anyone please help me?
 
G

Garfilone

I am new to C# and I have a problem with the TabControl. I want to add
a context menu to the tab with one menuItem to enable the user to
close the tabbs. But when I Right-click the tabs, the SelectedIndex of
the tab control remains the same as before (I right-click other tabbs
which are not selected). Can anyone please help me?

You have to active the Tab Page, or the index won't change
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top