private void EditButton_Click(object sender, EventArgs e) { EditButton.ImageKey = "PanelDropDown_Down.bmp"; Rectangle rect = EditButton.RectangleToScreen(EditButton.ClientRectangle); EditMenu.Show(rect.X - (EditMenu.Width - EditButton.Width) - 4, rect.Y + (EditButton.Height - 6)); }
private void EditButton_Click(object sender, EventArgs e) { Point p = new System.Drawing.Point(0, EditButton.Height); EditMenu.Show(EditButton, p); return; }