private void cmdSettings_Click(object sender, EventArgs e) { var F = new FindWindowPopupOptionsForm(_settings, this.DisplayObjects); var l = cmdSettings.Parent.PointToScreen(new Point(0, 0)); l = new Point(l.X, l.Y + pnlType.Size.Height); F.Location = l; F.Size = new System.Drawing.Size(pnlType.Width, F.Height); F.Show(); }
private void cmdSettings_Click(object sender, EventArgs e) { var F = new FindWindowPopupOptionsForm(_settings, this.DisplayObjects); var l = cmdSettings.Parent.PointToScreen(new Point(0, 0)); l = new Point(l.X, l.Y + pnlType.Size.Height); F.Location = l; F.Size = new System.Drawing.Size(pnlType.Width, F.Height); F.Show(); }