我是新用户并使用 Winform。我在主表单应用程序上定位子表单对话框时遇到问题。我想将它移动到主窗体窗口的右下角,但我的代码不起作用。我不明白。请帮我 。
basketForm = new Basket();
basketForm.Owner = this;
basketForm.Show();
Point pt = new Point(0, 0);
pt.X = this.Right - basketForm.Width;
pt.Y = this.Bottom - basketForm.Height;
pt = this.PointToScreen(pt);
basketForm.Location = pt;