首页  编辑  

在按钮下方弹出菜单

Tags: /C#/界面处理/   Date Created:

private void button1_Click( object sender , EventArgs e)

{

    Point vPoint = (( Control )sender) . PointToScreen( new Point ( 0 , 0 ));

   vPoint . Offset( 0 , (( Control )sender) . Height);

   contextMenuStrip1 . Show(vPoint);

}