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


  共有2555人关注过本帖平板打印复制链接

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

帅哥,在线噢!
有点蓝
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:超级版主 帖子:107129 积分:544888 威望: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

 回到顶部