Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/vb.net/17.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/user-interface/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在vb.net中单击“创建”选项卡?_Vb.net_User Interface_Project - Fatal编程技术网

在vb.net中单击“创建”选项卡?

在vb.net中单击“创建”选项卡?,vb.net,user-interface,project,Vb.net,User Interface,Project,我正在将一个程序制作为个人项目,其中的一部分需要我单击一个按钮,然后创建一个新选项卡,在该选项卡中,将在同一按钮上创建并在选项卡中显示单击标签 如何在vb.net中单击创建选项卡?假设您谈论的是Windows窗体: 在TabControl上,有一个属性是该控件上所有选项卡页的集合。此集合具有添加新选项卡页面的Add方法 例如: Dim newTabPage As New TabPage() 'Add controls to this new tab page here myTabControl

我正在将一个程序制作为个人项目,其中的一部分需要我单击一个按钮,然后创建一个新选项卡,在该选项卡中,将在同一按钮上创建并在选项卡中显示单击标签


如何在vb.net中单击创建选项卡?

假设您谈论的是Windows窗体:

TabControl
上,有一个属性是该控件上所有选项卡页的集合。此集合具有添加新选项卡页面的
Add
方法

例如:

Dim newTabPage As New TabPage()
'Add controls to this new tab page here

myTabControl.TabPages.Add(newTabPage)