English 中文(简体)
VB6/VBA TabStrip 能够在两个标签中都有相同的控制吗?
原标题:VB6/VBA TabStrip Can Have Same Controls In Both Tabs?

我注意到VBA/VB6 TabStrip 控制允许克隆其页面中孩子的克隆案例。 我正在查看一个老的VBA项目,它有一个标签,它只是增加了页数,控制自动复制,但可以有不同的数据源。

VB.NET有办法复制吗?

最佳回答

在 VB6 中, TabStrip 控制不是一个容器,它只是覆盖任何容器 — — 最常见的是图片框 — — 在其面板区域上的一个位置。 因此,对每个标签都可以使用同样的控制,只需修改标签标题和(或)数据源来更新它们。

在 VB. NET 中, Tab Control 提供每个标签的面板类似对象,称为 TabPage 。 因此, 您可以在设计时对每页设置单独的控制, 或者模拟 VB6 方法, 通过在运行时更改其父属性在页面之间程序移动控制。 通常在 Tab Control s SecretIndex changed 事件中进行, 例如 :

Private Sub TabControl1_SelectedIndexChanged(sender As Object, e As System.EventArgs) Handles TabControl1.SelectedIndexChanged
    DataGridView1.Parent = TabControl1.SelectedTab
End Sub
问题回答

暂无回答




相关问题
Prevent windows from queuing shellexecute requests

Win.ShellExecute 0, "open", "C:dirprogram.exe", "arguments", vbNullString, SW_SHOWNORMAL Win.ShellExecute 0, "open", "http://www.google.com", vbNullString, vbNullString, SW_SHOWNORMAL I want google....

Why is My Loop Only Deleting One File?

Using VB6 In a folder, i have n number of files, i want to delete a 0 kb files code Dim filename5 As String filename5 = Dir$(txtsourcedatabasefile & "*_*", vbDirectory) MsgBox filename5 Do ...

How to check the filesize?

Using VB6 I have the text file with different sizes, so i want to delete the file where filesize = 0 kb. How to make a vb6 code for deleting the 0 kb files. Need vb6 code Help

File Rename problem?

I m using VB6 and I have a folder where I have n number of files. I want to change the file extension to .txt. I used the code below to change the extension of all .fin files to .txt. Dim filename1 ...

Error 20728-F while in using Crystal Reports in VB6

I m using Crystal Reports in my VB6 project, but I m facing error while loading the report in crystalreport1.action=1; Please give me some solution for this problem. It is showing the error as Error ...

DllRegisterServer entry point was not found

When running my vb6 application I am getting error like, runtime error 53 : file not found: rscomclNoMsg.dll then i tried to register that dll from cmd line using regsvr32. Then I am getting ...

SQL Server 2000, ADO 2.8, VB6

How to determine if a Transaction is active i.e. before issuing Begin Transaction I want to ensure that no previous transaction are open.. the platform is VB6, MS-SQL Server 2000 and ADO 2.8

热门标签