There is nothing called as TabPage Key
.
Key is the name of the TabPage
. So, Setting the Name
property of your TabPage
should
work.
TabPage tabpagep1=new TabPage("");
tabpagep1.Name = "tp1";
tabpage1.text="netabpage1";
tabcontrol1.TabPages.Add(tabpagep1);
Later you can read it like
TabPage tp1 = tabcontrol1.TabPages["tp1"];