I have a DataGridView that shows student's points for each lesson and at some point I should show some information about the point via Tooltip. What I want is when user enters a specific cell, after 2 seconds ToolTip will appear at current cell, will be shown 2 seconds time and shows information about the point. I used that code:
private void dgwPNotlar_CellMouseEnter(object sender, DataGridViewCellEventArgs e)
{
var hucre = dgwPNotlar.CurrentCell;
var hucre_loc = dgwPNotlar.GetCellDisplayRectangle(e.ColumnIndex, e.RowIndex, false);
toolTip1.Show("//Info&" + e.ColumnIndex.ToString() + "&" + e.RowIndex.ToString(), dgwPNotlar, hucre_loc.X, hucre_loc.Y);
}
I set AutomaticDelay 500, AutoPopDelay 2000, InitialDelay 2000 and Reshow Delay 2000 for ToolTip. But ToolTip comes immediately when I enter a Datagridview cell and does not vanish. When I check my code, I saw this method was called several times although mouse stays still in the cell.
What can I do?