public partial class VersionCheckingForm : Form
{
public VersionCheckingForm()
{
InitializeComponent();
}
private void VersionCheckingForm_Load(object sender, EventArgs e)
{
SetDialogLocation();
}
private void SetDialogLocation()
{
int left = (Screen.PrimaryScreen.WorkingArea.Right - this.Width) / 2;
int top = (Screen.PrimaryScreen.WorkingArea.Bottom - this.Height) / 2;
Point windowLocation = new Point(left, top);
this.Location = windowLocation;
}
}
Revit二次开发 --窗体位置设置
最新推荐文章于 2022-10-24 22:51:04 发布