I want to hide form through button but from tabpage i want to hide see below.
i have show my form in tabepage but now i want to hide so how can i do this.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
theLizardPosted Feb 8, 2016, 6:19 PM
Amit Kumar SinghPosted Feb 8, 2016, 2:02 PM
TabPage controls are constrained by their container, so some of the properties inherited from the Control base class will have no effect, including Top, Height, Left, Width, Show, and Hide.
The tabs in a TabControl are part of the TabControl but not parts of the individual TabPage controls. Members of the TabPage class, such as the ForeColor property, affect only the client rectangle of the tab page, but not the tabs. Additionally, the Hide method of the TabPage will not hide the tab. To hide the tab, you must remove the TabPage control from the TabControl.TabPages collection.
Feroz KhanPosted Feb 8, 2016, 12:23 PM
Vivek KumarPosted Feb 8, 2016, 10:55 AM
Shweta LodhaPosted Feb 8, 2016, 8:58 AM