Click here to Skip to main content
16,020,313 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hie!


I am using vb.net 2005..
In my application i want to do something like :

when mi one file say item_master is open and that time i am opening other file say item 2_master so mi first item_master file is going in tab form.. how to do that.. i tried a lot but i didnt get it.


Please help me!
Posted

I would do the following. I'd placed tab control with one tab onto the page or form and hid this tab without content. During opening the second item i would make the first tab visible and would added new tab into tab control.
 
Share this answer
 
Comments
Npanchasara 7-Jul-10 3:24am    
but when first tab is visible that time how you trnasfer your opened page link to that tab ?
Pavel Yermalovich 7-Jul-10 3:27am    
First of all, which type of application are you developing: winforms or website?
are you looking at creating tabs at runtime? if so have a try at something like this

I am assuming you are developing a windows application by the way

dim myTabPage as new tabpage
myTabPage.Name = "AnotherTab"
myTabPage.Text = "Just Created Tab"

tabControl1.controls.add(myTabPage)


to add controls programmatically to the tab you would do something like this

dim x as new textbox
myTabPage.controls.add(x)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900