-->

Add new tabpage to Tab

2019-08-27 10:24发布

问题:

TabPage newtab = new TabPage();
newtab = tabPage2;
Acc1Tab.Controls.Add(newtab);

with tabPage2 I created by design 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.