private void btnChoose_Click(object sender, EventArgs e)
{
MouseEventArgs b = new MouseEventArgs(System.Windows.Forms.MouseButtons.Left, 2,
MousePosition.X, MousePosition.Y, 0);
DataGridViewCellMouseEventArgs a = new DataGridViewCellMouseEventArgs(0, 0,
MousePosition.X, MousePosition.Y, b);
dataGridView1_CellMouseDoubleClick(sender, a);
}
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter