WebSlider.Value

From Xojo Documentation

Property (As Integer )
aWebSlider.Value = newIntegerValue
or
IntegerValue = aWebSlider.Value

Supported for all project types and targets.

The current value of the Slider. The default is 0.

Example

This code in the ValueChanged event handler fills a WebImageView with shades of red as the slider is moved. For best results you will also want to increase the Maximum of the slider to 255:

Var p As New Picture(ImageView1.Width, ImageView1.Height, 32)
p.Graphics.ForeColor = RGB(Me.Value, 0, 0)
p.Graphics.FillRect(0, 0, ImageView1.Width, ImageView1.Height)

ImageView1.Picture = p

This code sets the slider to the middle position:

Slider1.Value = (Slider1.Minimum + Slider1.Maximum) \ 2