Foxtable(狐表)用户栏目专家坐堂 → [求助]groupbox排列


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

主题:[求助]groupbox排列

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


加好友 发短信
等级:超级版主 帖子:111414 积分:567140 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By:2017/12/9 15:09:00 [显示全部帖子]

窗口afterload、SizeChanged事件

Dim width As Integer = e.Form.width
Dim w3 As Integer = cint(width/3) - 6
Dim g1 As WinForm.GroupBox = e.Form.Controls("GroupBox1")
g1.Width = w3
g1.Left = 0

Dim g2 As WinForm.GroupBox = e.Form.Controls("GroupBox2")
g2.Width = w3
g2.Left = w3+3

Dim g3 As WinForm.GroupBox = e.Form.Controls("GroupBox3")
g3.Width = w3
g3.Left = w3*2+6

 回到顶部