|
-
May 20th, 2007, 11:41 PM
#1
Thread Starter
Member
how to make tabpages visible=false in vb.net
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
-
May 20th, 2007, 11:55 PM
#2
Re: how to make tabpages visible=false in vb.net
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.
-
May 21st, 2007, 12:16 AM
#3
Thread Starter
Member
Re: how to make tabpages visible=false in vb.net
 Originally Posted by jmcilhinney
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 reply
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.
-
May 21st, 2007, 12:21 AM
#4
Re: how to make tabpages visible=false in vb.net
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.
-
May 21st, 2007, 01:40 AM
#5
Re: how to make tabpages visible=false in vb.net
 Originally Posted by asra
thnx for ur reply
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. 
Hi,
You can try something like this:
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)
Wkr,
sparrow1
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|