Tooltips

How do I popup tooltip from a shape control?
[45 byte] By [BennyV] at [2008-1-10]
# 1

You could do something like the following;

Dim tp As New ToolTip()

Private Sub OvalShape1_MouseHover(ByVal sender As Object, ByVal e As System.EventArgs) Handles OvalShape1.MouseHover

tp.Show("OvalShape tooltip", ShapeContainer1, OvalShape1.Left, OvalShape1.Top, 5000)

End Sub

Private Sub OvalShape1_MouseLeave(ByVal sender As Object, ByVal e As System.EventArgs) Handles OvalShape1.MouseLeave

tp.Hide(ShapeContainer1)

End Sub

JohnHart_MSFT at 2007-10-3 > top of Msdn Tech,Visual Basic,Visual Basic Power Packs...