Foxtable(狐表)用户栏目专家坐堂 → [求助]关于窗口弹出位置


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

主题:[求助]关于窗口弹出位置

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


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

试试
Dim p As point
With CurrentTable.Grid
    p = new point(.Cols(.Col).Left,.Rows(.Row).Bottom)
    p = .PointToScreen(p)
End With
If p.y + e.Form.BaseForm.Height > ScreenHeight Then
    p.y = ScreenHeight  - e.Form.BaseForm.Height - 20
End If
e.Form.BaseForm.Location = p

 回到顶部