Add new tabpage to Tab
TabPage newtab = new TabPage();
newtab = tabPage2;
Acc1Tab.Controls.Add(newtab);
with tabPage2 I created by d开发者_开发百科esign mode with button, label... I use this code to add new tab when Doubleclick ListViewItem event occur. but if i double click one time it run correct button i click one more this tab will be a white it not contain anything and prevour tab is same.
精彩评论