请移动按钮标签构造帮助 [英] Moving button-label construction help please

查看:38
本文介绍了请移动按钮标签构造帮助的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Have a nice day




How can we move the button on the button that we have added in our project to the clicked position with mause.




I thank all those who helped





我尝试了什么:





What I have tried:

I have not found a solution

推荐答案

处理Form.MouseClick事件,并执行以下操作:

Handle the Form.MouseClick event, and do this:
private void frmMain_MouseClick(object sender, MouseEventArgs e)
    {
    myButton.Location = e.Location;
    }
}


这篇关于请移动按钮标签构造帮助的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆