HeaderPane
Main
Hide
Share Link
Print

ShowToolTip Event, SftTabs Class

Occurs before a tooltip is shown.

Class: SftTabs
Namespace: Softelvdm.SftTabsNET
Assembly: Softelvdm.SftTabsNET

Syntax

public event TabToolTipEventHandler ShowToolTip;
Public Event ShowToolTip As TabToolTipEventHandler

Comments

Occurs before a tooltip is shown.

The application can change the tooltip text, title, icon and style, or set an empty text to show no tooltip.

Examples

VB.NET View entire sample code

Private Sub SftTabs1_TabAdded(ByVal sender As System.Object, ByVal e As Softelvdm.SftTabsNET.TabEventArgs) Handles SftTabs1.TabAdded
    DumpValues("TabAdded", e)
End Sub

Private Sub SftTabs1_TabRemoved(ByVal sender As System.Object, ByVal e As Softelvdm.SftTabsNET.TabEventArgs) Handles SftTabs1.TabRemoved
    DumpValues("TabRemoved", e)
End Sub

Private Sub SftTabs1_ShowToolTip(ByVal sender As System.Object, ByVal e As Softelvdm.SftTabsNET.TabToolTipEventArgs) Handles SftTabs1.ShowToolTip
    DumpValues("ShowToolTip", e)

    If e.Area = TabHitAreaEnum.Tab AndAlso e.Tab IsNot Nothing AndAlso e.Tab.Text = "&Tooltips" Then
        e.ToolTipIcon = ToolTipIcon.Info
        e.ToolTipTitle = "Balloon Tooltip"
        e.ToolTipStyle = Softelvdm.SftTabsNET.Controls.ToolTipAppearanceEnum.Balloon
        e.ToolTipText = "A simple explanatory tooltip" + vbLf + "for just this tab"

See Also SftTabs Class | Classes | SftTabs/NET 3.0