Posted 17 September 2018, 11:40 pm EST
C1 version 4.0.20182.320
.Net framework 4.6.1
I am attempting to show a customized changing tooltip on each cell of a C1.Win.C1FlexGrid.C1FlexGrid
I also need a System.Windows.Forms.ContextMenuStrip to be on the grid for specific actions for the C1FlexGrid
When I update the tooltip in C1.Win.C1FlexGrid.C1FlexGridBase.MouseEnterCell it works fine and I see the tooltip.
The user clicks on a System.Windows.Forms.ToolStripMenuItem creating the event System.Windows.Forms.ToolStripItem.Click
After that the C1.Win.C1SuperTooltip.C1SuperTooltip doesn’t show the tooltip properly. I can set the tooltip to be visible by showing the tooltip using C1.Win.C1SuperTooltip.C1SuperTooltipBase.Show functions, but then I would need to handle hiding it as well and I would like to keep my code clean.
Relevant code:
Public Class Form1
Private Sub C1FlexGrid1_MouseEnterCell(sender As Object, e As C1.Win.C1FlexGrid.RowColEventArgs) Handles C1FlexGrid1.MouseEnterCell
C1SuperTooltip1.SetToolTip(C1FlexGrid1, "I want to see this tooltip.Hovering over row " & e.Row & " col " & e.Col & “”)
End Sub
Private Sub TooltipDisablerToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles TooltipDisablerToolStripMenuItem.Click Debug.Print("After this, the tooltip doesn't show up automatically") End Sub
End Class