Answers for "C# right click event"

C#
1

C# right click event

private void dataGridView1_MouseDown(object sender, MouseEventArgs e)
{
    if( e.Button = MouseButtons.Right )
    {
        dataGridView1.ContextMenu = contextMenu1;
        dataGridView1.ContextMenu.Show( dataGridView1, e.Location );
    }
}
Posted by: Guest on February-26-2021

C# Answers by Framework

Browse Popular Code Answers by Language