ListBoxTooltip – A class for displaying items’ values in a tooltip

ListBoxTooltip – A class for displaying items’ values in a tooltip

' --- The ListBoxTooltip class'' Usage in the client form:''    Dim lstTT As New ListBoxTooltip''    Private Sub Form_Load()'        Set lstTT.ListBox = List1'      End Sub'    Private Sub Form_Unload(Cancel As Integer)'        Set lstTT.ListBox = Nothing'    End SubPublic WithEvents ListBox As ListBoxPrivate Sub ListBox_MouseMove(Button As Integer, Shift As Integer, X As Single, _    Y As Single)    Dim oldFont As StdFont, itemIndex As Long        ' since a listbox doesn't have a TextHeight method    ' we must borrow it from its Parent    With ListBox.Parent        Set oldFont = .Font        Set .Font = ListBox.Font        ' determine which element the mouse is on        itemIndex = Y  .TextHeight("A") + ListBox.TopIndex        ' restore fonts        Set .Font = oldFont    End With        ' set the tooltip to the current item's string    If itemIndex < ListBox.ListCount Then        ListBox.ToolTipText = ListBox.List(itemIndex)    Else        ListBox.ToolTipText = ""    End IfEnd Sub

Share the Post:
data observability

Data Observability Explained

Data is the lifeblood of any successful business, as it is the driving force behind critical decision-making, insight generation, and strategic development. However, due to its intricate nature, ensuring the

Heading photo, Metadata.

What is Metadata?

What is metadata? Well, It’s an odd concept to wrap your head around. Metadata is essentially the secondary layer of data that tracks details about the “regular” data. The regular

XDR solutions

The Benefits of Using XDR Solutions

Cybercriminals constantly adapt their strategies, developing newer, more powerful, and intelligent ways to attack your network. Since security professionals must innovate as well, more conventional endpoint detection solutions have evolved