以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  关于窗口的位置  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=72431)

--  作者:有点蓝
--  发布时间:2015/7/30 9:56:00
--  

SetBounds(x, y, Width, Height)

x: 窗口水平位置
y: 窗口垂直位置
Width: 窗口宽度
Height: 窗口高度


http://www.foxtable.com/bbs/dispbbs.asp?BoardID=2&ID=66548&replyID=&skin=0


x =( ScreenWidth - Width) /2

y = (ScreenHeight - Height) /2

[此贴子已经被作者于2015/7/30 9:56:06编辑过]

--  作者:大红袍
--  发布时间:2015/7/31 0:01:00
--  
e.form.baseform.left = (SysInfo.ScreenWidth-e.form.baseform.width) / 2
e.form.baseform.top = (SysInfo.Screenheight-e.form.baseform.height) / 2