Add new tabpage to Tab

雨燕双飞 提交于 2020-01-25 21:51:06

问题


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.

来源:https://stackoverflow.com/questions/5921957/add-new-tabpage-to-tab

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!