When I Click specific cell in DataGridView in my Winform project, let say ColumnIndex 5 , then I want to popup or open a litle form (not MessageBox) in the same position as Clicked Cell. Right now When I click specific cell, then my form opens in center of Screen. But I wont to open iy in the same position or Location of that Clicked Cell. I don't know how, but I think I need to get location or position of Clicked cell and by some how integrate to popup form. This is my code and Test form opens in the middle of screen when I click ColmnIndex 5
private void dgvComputersAdgv_CellMouseClick(object sender, DataGridViewCellMouseEventArgs e)
{
if (e.ColumnIndex == 5)
{
Test ts = new Test();
ts.ShowDialog();
}
}
Thank you in advance !