111,092
社区成员




string var = textBox1.Text;
var screenPoint = LocationOnClient(this.textBox1);
screenPoint.Y += this.textBox1.Height;
Form f = new Form();
f.Width = 500;
f.Height = 500;
f.FormBorderStyle = FormBorderStyle.None;
f.Location = screenPoint;
f.Show();
private Point LocationOnClient(Control c)
{
Point retval = new Point(0, 0);
for (; c.Parent != null; c = c.Parent)
{
retval.Offset(c.Location);
}
return retval;
}