private void gMapControl_MouseDoubleClick(object sender, MouseEventArgs e)
{
if (e.Button == System.Windows.Forms.MouseButtons.Right)
{
DisplayRightClickOptions MyForm = new DisplayRightClickOptions();
MyForm.StartPosition = FormStartPosition.Manual;
Point relativeToForm = this.PointToScreen(new Point(e.X, e.Y));
if (this.checkBoxFullscreen.Checked)
MyForm.Location = new Point(relativeToForm.X - 25, relativeToForm.Y + 55);
else
MyForm.Location = new Point(relativeToForm.X + 95, relativeToForm.Y + 55);
MyForm.Show();
}
}