private void button1_MouseUp(object sender, MouseEventArgs e)
{
if (e.Button == System.Windows.Forms.MouseButtons.Right)
{
contextMenuStrip1.Items.Add(button1 .Text );
//X座標を取得する
int x = System.Windows.Forms.Cursor.Position.X;
//Y座標を取得する
int y = System.Windows.Forms.Cursor.Position.Y;
contextMenuStrip1.Show(x ,y );
}
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货