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)); } }
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)); } }