ComponentOne True DBGrid for .NET (2.0) Search HelpCentral 

C1TrueDBDropdown.HScrollBar Property

Gets the HBar object that controls the appearance of the horizontal scrollbar.

[Visual Basic]

Public ReadOnly Property HScrollBar As HBar

[C#]

public HBar HScrollBar {get;}

[Delphi]

public property HScrollBar: HBar read get_HScrollBar;

Example

The following code assigns the height of the horizontal scrollbar to 150 pixels and sets the ScrollBarStyleEnum to ScrollBarStyleEnum.Always so the horizontal scrollbar always appears:

·      Visual Basic

       Me.C1TrueDBDropdown1.HScrollBar.Style = C1.Win.C1TrueDBGrid.ScrollBarStyleEnum.Always

       Me.C1TrueDBDropdown1.HScrollBar.Height = 150

·      C#

       this.c1TrueDBDropdown1.HScrollBar.Style = C1.Win.C1TrueDBGrid.ScrollBarStyleEnum.Always;

       this.c1TrueDBDropdown1.HScrollBar.Height = 150;

·      Delphi

       Self.C1TrueDBGrid1.HScrollBar.Style := C1.Win.C1TrueDBGrid.ScrollBarStyleEnum.Always;

       Self.C1TrueDBDropdown1.HScrollBar.Height := 150;

See Also

C1TrueDBDropdown Class | C1TrueDBDropdown Members | C1.Win.C1TrueDBGrid Namespace


Send comments about this topic to ComponentOne.
Copyright © ComponentOne LLC. All rights reserved.