如显示器为多屏,winform等cs窗体设置弹出位置

如显示器为多屏,winform等cs窗体设置弹出位置,应该取工作区位置

FrmSelectBodyPart frmSelectBodyPart= new FrmSelectBodyPart();
//frmSelectBodyPart.Location = txtFee.Parent.PointToScreen(cmbBodyPart.Location);
//指定工作区点的位置计算成屏幕坐标
frmSelectBodyPart.Location = cmbBodyPart.PointToScreen(new Point(0, this.cmbBodyPart.Height + 2));
frmSelectBodyPart.ShowDialog();

猜你喜欢

转载自blog.csdn.net/China_Marcy/article/details/114526710
今日推荐