Overview (Scrollbar)
Control (Scrollbar)
Enabled (Scrollbar)
Height (Scrollbar)
LargeChange (Scrollbar)
Left (Scrollbar)
Maximum (Scrollbar)
Minimum (Scrollbar)
New1 (Scrollbar)
SmallChange (Scrollbar)
Top (Scrollbar)
Value (Scrollbar)
Value Event (Scrollbar)
Visible (Scrollbar)
Width (Scrollbar)
Overview (Scrollbar) Top
The ScrollBar control is the regular windows scrollbar control.
The control can be a vertical bar or a horizontal bar.
The ScrollBar raises the ValueChanged event when the user scrolls the control.
Example:
'bar is a ScrollBar control.
Sub Globals
End Sub
Sub App_Start
Form1.Show
bar.New1("Form1",50,0,20,300,true) 'Vertical bar.
bar.LargeChange = 20
bar.SmallChange = 5
bar.Maximum = 200
End Sub
Sub bar_ValueChanged
Form1.Text = bar.Value
End Sub
Control (Scrollbar) Top
Gets or sets a reference to the control.
Syntax: Control
Example:
TabControl.AddControl(bar.Control, 0, 30, 30)
Enabled (Scrollbar) Top
Gets or sets the control's enabled property.
Syntax: Enabled
Example:
bar.Enabled = false
Height (Scrollbar) Top
Gets or sets the control's height property.
Syntax: Height
Example:
bar.Height = 100
LargeChange (Scrollbar) Top
Gets or sets the size of a large change.
A large change occurs when the users presses on the scroll bar (unlike scrolling the bar).
Syntax: LargeChange
Example:
bar.LargeChange = 10
Left (Scrollbar) Top
Gets or sets the control's left property.
Syntax: Left
Example:
bar.Left = 20
Maximum (Scrollbar) Top
Gets or sets the maximum value of the control.
Syntax: Maximum
Example:
bar.Maximum = 200
Minimum (Scrollbar) Top
Gets or sets the minimum value of the control.
Syntax: Minimum
Example:
bar.Minimum = 0
New1 (Scrollbar) Top
Initializes the control.
Syntax: New1 (FormName As Control, Left As Int32, Top As Int32, Width As Int32, Height As Int32, IsVertical As Boolean)
FormName - The name of the parent control.
IsVertical - Switches between a vertical bar and a horizontal bar.
Example:
bar.New1("Form1",50,0,20,300,true)
SmallChange (Scrollbar) Top
Gets or sets the size of a small change.
A small change occurs when the user presses on one of the arrows or uses the keyboard to scroll the control.
Syntax: SmallChange
Example:
bar.SmallChange = 2
Top (Scrollbar) Top
Gets or sets the control's top property.
Syntax: Top
Example:
bar.Top = 10
Value (Scrollbar) Top
Gets or sets the value (position) of the control.
Syntax: Value
Example:
Sub bar_ValueChanged
Form1.Text = bar.Value
End Sub
Value Event (Scrollbar) Top
Occurs when the control's value has changed.
Example:
Sub bar_ValueChanged
Form1.Text = bar.Value
End Sub
Visible (Scrollbar) Top
Gets or sets the control's visible property.
Syntax: Visible
Example:
bar.Visible = true
Width (Scrollbar) Top
Gets or sets the control's width property.
Syntax: Width
Example:
bar.Width = 100