Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1110
Custom tooltip on UltraListView SubItem
posted

I have a listview with multiple columns. I would like to display a tooltip (UltraToolTipInfo) on a separate subitem.

I created some code but the tooltip only shows up if I move my mouse on the ListViewItem, not on the SubItem (the text is form the subviewitem so that seems correct).

    Private Sub ulvFiles_MouseMove(sender As Object, e As System.Windows.Forms.MouseEventArgs) Handles ulvFiles.MouseMove

        Dim subItem As UltraListViewSubItem = ulvFiles.SubItemFromPoint(New Point(e.X, e.Y))
        If (subItem IsNot Nothing) Then
            tip = New UltraToolTipInfo
            tip.ToolTipText = subItem.Text
            tipManager.SetUltraToolTip(ulvFiles, tip)
            tipManager.ShowToolTip(ulvFiles)
        End If
    End Sub