示例#1
0
 private void ButtonPart_MouseDown(object sender, MouseEventArgs e)
 {
     if (e.Button == MouseButtons.Left)
     {
         MenuPart.Show((Button)sender, new Point(ButtonPart.Left - ButtonPart.Width + 20, ButtonPart.Top + ButtonPart.Height));
     }
 }
示例#2
0
 private void ButtonPart_MouseDown(object sender, MouseEventArgs e)
 {
     if (e.Button == MouseButtons.Left)
     {
         MenuPart.Show((Button)sender, new Point(ButtonPart.Location.X - ButtonPart.Left, ButtonPart.Location.Y + ButtonPart.Height));
     }
 }