0

Let's say I have a TabStrip control, and I have two Tabs: one with a WebBrowser, and one with a Textbox. I want to copy this to another Form, so that it docks to that Form, but I can't.

Does anyone know how to do this?

4

2 回答 2

0

在您要复制控件的表单中尝试以下操作:

    Dim tc As New TabControl
    tc = New Form1().TabControl
    Me.Controls.Add(tc)

应将选项卡控件复制到其他表单,并且所有属性都保持不变。

于 2013-06-22T10:34:23.407 回答
0

您可以复制表单代码文件并重命名副本并重命名表单类名称,这样您将拥有完全相同的所有控件和属性

于 2013-06-22T10:42:17.450 回答