I have a C# 2.0 WinForms application, looks like this

How to add a button to the upper left corner of TabControl, looks like this?

I am very grateful for your help.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
As Kieren Johnstone said it’s not possible without creating your own version.. But you could actually just add a tab to the control and catch the on tab changed event. Get the currentTab and if it matches the one that should be your button execute said code.. Then change back to the previous tab…. Its more than possible just a little different.
If you hide the tab it will shift the entire tab control to the left effectively taking out the space you are trying to achieve.. If you do it like what I am saying. And simply add a tab to the tab control. Then use that tab as your button, It will work just like a button does just a little code behind is required to first get the event when the user clicks a tab in the tabControl.
First set the current tab index to the one you want the user to be defaulted to. Store the index value in a variable. Now catch the tabchanged event. If the first tab is selected then the user has clicked your intended button thus meaning you should fire your code that you would have fired from an actual button. Next change the selectedTabIndex to the value contained in the index variable you set earlier. If the first tab is not selected update the value of the index variable set earlier.. This is the simplest way around your problem that I can think of off hand.