Click here to Skip to main content
15,881,812 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am creating tabitems dynamically depending on selected menuitems:

VB
Dim myTabItem As New TabItem()
       myTabItem.Header = "TabPage" & (tc_main.Items.Count + 1)
       tc_main.Items.Add(myTabItem)


After creating a tabitem, iwant to poulate it with different controls. For example with a listview and buttuns.
How can i create controls inside a tabitem?
Posted
Updated 16-Oct-15 0:45am
v2
Comments
Herman<T>.Instance 16-Oct-15 6:46am    
myTabItem.Control.Add().....

1 solution

C#
ListView listView1 = new ListView();
/*
different listview properties
*/
myTabsItem.Control.Add(listView1);


-KR
 
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