Winform鼠标左键点击按钮弹出设置菜单

        /// <summary>
        /// 鼠标左键点击按钮弹出设置菜单
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void button2_MouseDown(object sender, MouseEventArgs e)
        {
            if (e.Button == MouseButtons.Left)
            {
                contextMenuStrip2.Show((Button)sender, new Point(e.X, e.Y));
            }
        }
posted @ 2011-04-07 15:41  Yao,Mane  阅读(990)  评论(0编辑  收藏  举报