property Slider.ToolTipText as String
Specifies the control's tooltip text.

TypeDescription
String A String expression that specifies the tooltip being displayed when the user clicks and moves the control's thumb. 
Use the ToolTipText property to assign a tooltip to be displayed when the user clicks and moves the thumb part of the control. Use the ToolTipTitle property to assign a title for the tooltip. The tooltip shows up only when the user clicks and moves the thumb, and the ToolTipText or ToolTipTitle property is not empty. Use the Value property to specify the control's value. Use the Minimum and Maximum properties to specify the range's value. The control fires the Change event property when the user changes the position of the thumb.

The following VB sample displays a tooltip when user moves the thumb:

Private Sub Slider1_Change()
    With Slider1
        .Object.ToolTipText = "Record " & .Value & "/" & .Maximum
        .ToolTipTitle = "Position"
    End With
End Sub

The following VB/NET sample displays a tooltip when user moves the thumb:

Private Sub AxSlider1_Change(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles AxSlider1.Change
    With AxSlider1
        .ToolTipText = "Record " & .Value.ToString() & "/" & .Maximum.ToString()
		.ToolTipTitle = "Position"
    End With
End Sub

The following C# sample displays a tooltip when user moves the thumb:

private void axSlider1_Change(object sender, EventArgs e)
{
    axSlider1.ToolTipText = "Record " + axSlider1.Value.ToString() + "/" + axSlider1.Maximum.ToString();
    axSlider1.ToolTipTitle = "Position";
}

The following C++ sample displays a tooltip when user moves the thumb:

void OnChangeSlider1() 
{
	CString strFormat;
	strFormat.Format( _T("Record %i/%i"), m_slider.GetValue(), m_slider.GetMaximum() );
	m_slider.SetToolTipText( strFormat );
	m_slider.SetToolTipTitle( "Position" );
}

The following VFP sample displays a tooltip when user moves the thumb:

*** ActiveX Control Event ***

with thisform.Slider1
    .Object.ToolTipText = "Record " + ltrim(str(.Value)) + "/" + ltrim(str(.Maximum))
    .ToolTipTitle = "Position"
endwith