一个控件中的鼠标事件,如何计算定位一个右键菜单.需要哪些坐标?如何获得坐标?
谢谢 --------------------编程问答-------------------- --------------------编程问答----------------------------------------编程问答-------------------- 右键菜单定位到一个按钮的下面
string.Format("X坐标{0}Y坐标{1}",e.X,e.Y);
--------------------编程问答--------------------
private void button1_Click(object sender, EventArgs e)
{
this.contextMenuStrip1.Show(this, this.button1.Location.X, this.button1.Location.Y + this.button1.Height);
}
支持
补充:.NET技术 , C#