I'm new here. i got a little problem with tab controlling.here is the problem...
I've added a new tab control with 3 tabs to my form. i want to hide tabpage2 on default view so I wrote tabpage2.dispose() method in formload event.
now I want to view that page by clicking a button placed in tabpage1.(tabpage1 is the default view) so i wrote,
1. tabpage2.show();
2. tabcontrol.selectedtab = tabpage2;
3. tabpage2.select();
but I couldn't get that tabpage again.
RameshPosted Mar 12, 2011, 6:43 AM
Sam HobbsPosted Mar 11, 2011, 2:56 PM
RameshPosted Mar 11, 2011, 2:12 PM
Suthish NairPosted Mar 10, 2011, 2:10 PM
tabcontrol.Tabs[1]. Visible = false;
Sam HobbsPosted Mar 9, 2011, 11:53 PM
But probably what you need to do is to add and remove tabpages from the ControlCollection' the collection of tabpages.
RameshPosted Mar 9, 2011, 8:37 AM
Jaganathan BantheswaranPosted Mar 9, 2011, 8:34 AM
I am not sure but telling you. Instead of using Dispose() use Hide() as like Show().