GetNumTicks Method Example

This example displays the current number of ticks on a Slider control, then increments the Max property by 10. To try this example, place a Slider control onto a form and paste the code into the form's Declarations section. Run the example, and click the Slider control to get the number of ticks. Every click on the control increases the ticks.

Private Sub Slider1_Click()
   MsgBox Slider1.GetNumTicks
   Slider1.Max = Slider1.Max + 10
End Sub