I have a method that creates a series of tabPages, although it only defines the “text” value (title) of them, how can I set the “name” of the tab pages as well?
foreach (string s in hostnames)
{
TreeNode newNode = new TreeNode(s);
hostView.SelectedNode.Nodes.Add(newNode);
string title = s;
TabPage myTabPage = new TabPage(title);
tabControl1.TabPages.Add(myTabPage);
}
You can use the Name Property for setting the name: