111,129
社区成员
发帖
与我相关
我的任务
分享 private void btn_SelDW_Click(object sender, EventArgs e)
{
int x, y,h;
SelDWForm dwForm = new SelDWForm();
if (sender is Button)
{
x = (sender as Button).PointToScreen(new Point()).X;
y = (sender as Button).PointToScreen(new Point()).Y;
dwForm.Location = new Point(x, y);
}
dwForm.ShowDialog();
}
int x, y
private void btn_SelDW_Click(object sender, EventArgs e)
{
SelDWForm dwForm = new SelDWForm();
if (sender is Button)
{
x=(sender as Button).Location.X;
y = (sender as Button).Location.Y;
//dwForm.Left= x;
//dwForm.Top = y;
dwForm.Location = new Point(x,y);
dwForm.ShowDialog();
}
}