c#做了一个系统,点击按钮弹出对话框,让鼠标在标题栏点击可任意移动对话框,对话框用panel做的怎样实现急

2024-12-13 01:26:03
推荐回答(1个)
回答1:

private void panel1_MouseMove(object sender, MouseEventArgs e)
{
if (e.Button.ToString().Equals("Left"))
panel1.Location = e.Location;
}