Rss & SiteMap

Foxtable(狐表) http://www.foxtable.com

新一代数据库软件,完美融合Access、Foxpro、Excel、vb.net之优势,人人都能掌握的快速软件开发工具!
共2 条记录, 每页显示 10 条, 页签: [1]
[浏览完整版]

标题:如何动态增加表控件?

1楼
rjh4078 发表于:2024/12/30 13:30:00
Dim tab1 As WinForm.TabControl
tab1 = e.Form.CreateControl("tab1", ControlTypeEnum.TabControl)
e.Form.Controls("P1").addcontrol(tab1)
tab1.Dock = System.Windows.Forms.DockStyle.fill
tab1.Font = fnt

Dim x As Integer
Dim str As String
Dim pan As WinForm.Panel


    str = "test"
    tab1.TabPages.Add(str, str)
    pan = e.Form.CreateControl("pan" & str, ControlTypeEnum.panel)
    pan.Dock = System.Windows.Forms.DockStyle.fill
    pan.AutoScroll = True
    pan.BackColor = color.Silver 
    e.Form.Controls("tab1").basecontrol.tabpages(str).addcontrol(pan)
    
Dim t As WinForm.Table
t = e.Form.CreateControl("t123", ControlTypeEnum.Table)
e.Form.Controls("pantest").addcontrol(t)


到红色备份就报错  想实现的效果是在每个tabpage里添加一个表控件 然后再绑定sql语句
2楼
有点蓝 发表于:2024/12/30 13:32:00
http://www.foxtable.com/webhelp/topics/1919.htm
共2 条记录, 每页显示 10 条, 页签: [1]

Copyright © 2000 - 2018 foxtable.com Tel: 4000-810-820 粤ICP备11091905号

Powered By Dvbbs Version 8.3.0
Processed in .02344 s, 2 queries.