property PropertiesList.ScrollPartVisible(ScrollBar as ScrollBarEnum, Part as ScrollPartEnum) as Boolean
Indicates whether the specified scroll part is visible or hidden.

TypeDescription
ScrollBar as ScrollBarEnum A ScrollBar expression that indicates the scrollbar where the part is visible or hidden.
Part as ScrollPartEnum A ScrollPartEnum expression that specifies the parts of the scroll bar being visible
Boolean A Boolean expression that specifies whether the scrollbar's part is visible or hidden.
Use the ScrollPartVisible property to add or remove buttons/parts in the control's scrollbar. By default, when a part becomes visible, the ScrollPartEnable property is automatically called, so the parts becomes enabled. Use the ScrollPartEnable property to specify enable or disable parts in the control's scrollbar. Use the ScrolPartCaption property to specify the caption of the scroll's part. The control fires the ScrollButtonClick event when the user clicks a part of the scroll bar. Use the Background property to change the visual appearance for any part in the control's scroll bar.

By default, the following parts are shown:

The following VB sample adds up and down additional buttons to the control's vertical scroll bar :

With PropertiesList1
    .BeginUpdate
        .ScrollPartVisible(exVScroll, exLeftB1Part Or exRightB1Part) = True
        .ScrollPartCaption(exVScroll, exLeftB1Part) = "<img></img>1"
        .ScrollPartCaption(exVScroll, exRightB1Part) = "<img></img>2"
    .EndUpdate
End With

The following VB.NET sample adds up and down additional buttons to the control's vertical scroll bar :

With AxPropertiesList1
    .BeginUpdate()
    .set_ScrollPartVisible(EXPROPERTIESLISTLib.ScrollBarEnum.exVScroll, EXPROPERTIESLISTLib.ScrollPartEnum.exLeftB1Part Or EXPROPERTIESLISTLib.ScrollPartEnum.exRightB1Part, True)
    .set_ScrollPartCaption(EXPROPERTIESLISTLib.ScrollBarEnum.exVScroll, EXPROPERTIESLISTLib.ScrollPartEnum.exLeftB1Part, "<img></img>1")
    .set_ScrollPartCaption(EXPROPERTIESLISTLib.ScrollBarEnum.exVScroll, EXPROPERTIESLISTLib.ScrollPartEnum.exRightB1Part, "<img></img>2")
    .EndUpdate()
End With

The following C# sample adds up and down additional buttons to the control's vertical scroll bar :

axPropertiesList1.BeginUpdate();
axPropertiesList1.set_ScrollPartVisible(EXPROPERTIESLISTLib.ScrollBarEnum.exVScroll, EXPROPERTIESLISTLib.ScrollPartEnum.exLeftB1Part | EXPROPERTIESLISTLib.ScrollPartEnum.exRightB1Part, true);
axPropertiesList1.set_ScrollPartCaption(EXPROPERTIESLISTLib.ScrollBarEnum.exVScroll, EXPROPERTIESLISTLib.ScrollPartEnum.exLeftB1Part , "<img></img>1");
axPropertiesList1.set_ScrollPartCaption(EXPROPERTIESLISTLib.ScrollBarEnum.exVScroll, EXPROPERTIESLISTLib.ScrollPartEnum.exRightB1Part, "<img></img>2");
axPropertiesList1.EndUpdate();

The following C++ sample adds up and down additional buttons to the control's vertical scroll bar :

m_propertiesList.BeginUpdate();
m_propertiesList.SetScrollPartVisible( 0 /*exVScroll*/, 32768  /*exLeftB1Part*/ | 32 /*exRightB1Part*/, TRUE );
m_propertiesList.SetScrollPartCaption( 0 /*exVScroll*/, 32768  /*exLeftB1Part*/ , _T("<img></img>1") );
m_propertiesList.SetScrollPartCaption( 0 /*exVScroll*/, 32 /*exRightB1Part*/ , _T("<img></img>2") );
m_propertiesList.EndUpdate();

The following VFP sample adds up and down additional buttons to the control's vertical scroll bar :

With thisform.PropertiesList1
    .BeginUpdate
        .ScrollPartVisible(0, bitor(32768,32)) = .t.
        .ScrollPartCaption(0,32768) = "<img></img>1"
        .ScrollPartCaption(0, 32) = "<img></img>2"
    .EndUpdate
EndWith
*** ActiveX Control Event ***
LPARAMETERS scrollpart

wait window nowait ltrim(str(scrollpart))