Gets or sets a value that indicates which
System.Windows.Forms.ScrollBar shows the scroll tip.
<FeatureAttribute(Name="Scroll", Version="v5.0")>
<SRDescriptionAttribute("Indicates whether ToolTips are shown when dragging the thumb button of the horizontal or vertical scroll bars.
")>
<SRCategoryAttribute("Appearance")>
<DefaultValueAttribute()>
Public Property ShowScrollTip As ScrollBars
Dim instance As GcMultiRow
Dim value As ScrollBars
instance.ShowScrollTip = value
value = instance.ShowScrollTip
[Feature(Name="Scroll", Version="v5.0")]
[SRDescription("Indicates whether ToolTips are shown when dragging the thumb button of the horizontal or vertical scroll bars.
")]
[SRCategory("Appearance")]
[DefaultValue()]
public ScrollBars ShowScrollTip {get; set;}
Property Value
One of the
System.Windows.Forms.ScrollBars values that indicates which
System.Windows.Forms.ScrollBar shows the scroll tip. The default is
System.Windows.Forms.ScrollBars.None.
The following code example shows how to customize scroll tooltips when dragging the scroll bar.
public ScrollDemo()
{
this.Text = "Scroll Tip Demo";
gcMultiRow.Dock = DockStyle.Fill;
gcMultiRow.ShowScrollTip = ScrollBars.Both;
gcMultiRow.Template = Template.CreateGridTemplate(10);
gcMultiRow.HorizontalScrollTipAlignment = HorizontalScrollTipAlignment.Right;
gcMultiRow.VerticalScrollTipAlignment = VerticalScrollTipAlignment.Bottom;
gcMultiRow.RowCount = 100;
this.gcMultiRow.ScrollTipTextNeeded += new EventHandler<ScrollTipTextNeededEventArgs>(gcMultiRow_ScrollTipTextNeeded);
this.Controls.Add(gcMultiRow);
}
Public Sub New()
Me.Text = "Scroll Tip Demo"
gcMultiRow.Dock = DockStyle.Fill
gcMultiRow.ShowScrollTip = ScrollBars.Both
gcMultiRow.HorizontalScrollTipAlignment = HorizontalScrollTipAlignment.Right
gcMultiRow.VerticalScrollTipAlignment = VerticalScrollTipAlignment.Bottom
gcMultiRow.Template = Template.CreateGridTemplate(10)
gcMultiRow.RowCount = 100
Me.Controls.Add(gcMultiRow)
End Sub
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2