以文本方式查看主题 - Foxtable(狐表) (http://foxtable.com/bbs/index.asp) -- 专家坐堂 (http://foxtable.com/bbs/list.asp?boardid=2) ---- 窗口打开到新增加的页签 (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=120070) |
||||
-- 作者:cd_tdh -- 发布时间:2018/6/6 15:07:00 -- 窗口打开到新增加的页签 页签学习中,怎么把窗口打开到新增加的页签里呢?
|
||||
-- 作者:有点甜 -- 发布时间:2018/6/6 15:32:00 -- 1、窗口1改成独立窗口;
2、修改代码
Dim tab As WinForm.TabControl = e.form.Controls("TabControl1") tab.TabPages.Add(e.sender.name,e.sender.name) |
||||
-- 作者:cd_tdh -- 发布时间:2018/6/6 16:14:00 -- 老师我写成内部函数后,会重复打开页签,怎么判断已经打开的了的不在打开,而是直接跳转到该页面呢? Dim e As Object = Args(0)
打开代码: Functions.Execute("增加页签",e,"窗口1") [此贴子已经被作者于2018/6/6 16:19:22编辑过]
|
||||
-- 作者:有点甜 -- 发布时间:2018/6/6 16:23:00 -- Dim tab As WinForm.TabControl = e.form.Controls("TabControl1") Dim Name As String = "窗口1" If tab.TabPages(e.sender.name) Is Nothing Then tab.TabPages.Add(e.sender.name,e.sender.name) Dim pb = tab.BaseControl Forms(Name).OPEN(-1000,-1500) Forms(Name).BaseForm.TopLevel = False Forms(Name).BaseForm.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None Forms(Name).BaseForm.Dock = System.Windows.Forms.DockStyle.Fill PB.TabPages(e.sender.name).Controls.Clear PB.TabPages(e.sender.name).Controls.add(Forms(Name).BaseForm) tab.SelectedPage = tab.TabPages(e.sender.name) Else tab.SelectedPage = tab.TabPages(e.sender.name) End If |
||||
-- 作者:cd_tdh -- 发布时间:2018/6/6 17:12:00 -- 老师,首页不显示关闭按钮怎么处理呢? |
||||
-- 作者:有点甜 -- 发布时间:2018/6/6 17:21:00 -- 参考
http://www.foxtable.com/bbs/dispbbs.asp?BoardID=2&ID=118544&skin=0
|