Hi all:
I am working with a ListView that I want to change the ToolTipText depending on which item is selected. Currently, I have this in the MouseMove event. This works fine, but stays as long as the mouse hovers over the listview.
Any suggestions?
Here is my code:
Private Sub LV1_MouseMove(Button As Integer, Shift As Integer, x As Single, y As Single)
Dim nPos As Integer 'find the position of the last \
Dim strF As String 'find the application name
nPos = InStrRev(LV1.SelectedItem.Text, "\")
strF = Mid(LV1.SelectedItem.Text, nPos + 1, Len(LV1.SelectedItem.Text))
LV1.ToolTipText = strF
End Sub
Thanks,
Ron
Ron Repp
I am working with a ListView that I want to change the ToolTipText depending on which item is selected. Currently, I have this in the MouseMove event. This works fine, but stays as long as the mouse hovers over the listview.
Any suggestions?
Here is my code:
Private Sub LV1_MouseMove(Button As Integer, Shift As Integer, x As Single, y As Single)
Dim nPos As Integer 'find the position of the last \
Dim strF As String 'find the application name
nPos = InStrRev(LV1.SelectedItem.Text, "\")
strF = Mid(LV1.SelectedItem.Text, nPos + 1, Len(LV1.SelectedItem.Text))
LV1.ToolTipText = strF
End Sub
Thanks,
Ron
Ron Repp