Foxtable(狐表)用户栏目专家坐堂 → 窗口中的表如何实现自动调整高度?


  共有1855人关注过本帖树形打印复制链接

主题:窗口中的表如何实现自动调整高度?

帅哥哟,离线,有人找我吗?
有点蓝
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:超级版主 帖子:109678 积分:558082 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By:2018/5/14 20:50:00 [显示全部帖子]

Dim t As Table = Tables("订单")
Dim t1_height As Integer = (t.Rows.Count+2) * t.DefaultRowHeight

Dim t2 As Table = Tables("表二")
Dim t2_height As Integer = (t2.Rows.Count+2) * t2.DefaultRowHeight

Dim sp1 As WinForm.SplitContainer = Forms("窗口1").Controls("SplitContainer1")
Dim sp2 As WinForm.SplitContainer = Forms("窗口1").Controls("SplitContainer2")
sp1.SplitterDistance = t1_height + t2_height +  6
sp2.SplitterDistance = t2_height

 回到顶部