hi
plz tell me how can i make the tabpages visible = false. iam using vb.net 2005.
its very urgent . please help me.
thanking you all
asra
Printable View
hi
plz tell me how can i make the tabpages visible = false. iam using vb.net 2005.
its very urgent . please help me.
thanking you all
asra
It's not possible. If a TabPage is in the TabPages collection then it's visible. If you son't want it visible then you have to remove it from the TabControl's TabPages collection. You can Add or Insert it back again later if you want it visible again.
thnx for ur replyQuote:
Originally Posted by jmcilhinney
here in my project , a have a next button. upon the click of next button a tabpage should be get added. this next button is out side the tabcontrol. i have to add 4 tab pages upon the click of this next button. how can i do this plz help me.:confused:
The TabControl has a TabPages property that is a collection containing the TabPages. It has Add and Insert methods, plus it has Remove and RemoveAt methods. Their names pretty much speak for themselves as to the purpose of each method but if you want clarification then you should read the MSDN help topic for each one. Start at the topic for the TabControl and follow the appropriate links.
Hi,Quote:
Originally Posted by asra
You can try something like this:
Wkr,Code:Dim TabPage1 As New TabPage
Dim TabPage2 As New TabPage
Dim TabPage3 As New TabPage
Dim TabPage4 As New TabPage
' Gets the controls collection for tabControl1.
' Adds the new tabPage to this collection.
Me.TabControl1.TabPages.Add(TabPage1)
Me.TabControl1.TabPages.Add(TabPage2)
Me.TabControl1.TabPages.Add(TabPage3)
Me.TabControl1.TabPages.Add(TabPage4)
sparrow1