Help with trackbar

Discussion in 'Questions (Windows Mobile)' started by luke2153, Jul 19, 2007.

  1. luke2153

    luke2153 New Member

    Hi!

    I am new to this forum and to b4ppc, so there is my first question:

    how do i add a trackbar?
    It does not show up under "controls" in the form-designer...

    Thanks!
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    Welcome,
    Some of the controls are available as libraries.
    The TrackBar is such a control.
    You need to add the TrackBar library using Tools - Components.
    Then add the control Tools - Add Object - TrackBar
    Attached is a small example.
    Code:
    Sub Globals

    End Sub

    Sub App_Start
        Form1.Show
        bar.New1(
    "Form1",20,20,50,200,true)
    End Sub

    Sub bar_ValueChanged
        form1.Text = bar.Value
    End Sub
     

    Attached Files:

  3. luke2153

    luke2153 New Member

    Thank you!

    Works fine now!!!
     
Loading...